mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:48:33 +08:00
6d72c8ab19
This PR revamps the topic timer UI, using the time shortcut selector from the bookmark modal. * Fixes an issue where the duration of hours/days after last reply or auto delete replies was not enforced to be > 0 * Fixed an issue where the timer dropdown options were not reloaded correctly if the topic status changes in the background (use `MessageBus` to publish topic state in the open/close timer jobs) * Moved the duration input and the "based on last post" option from the `future-date-input` component, as it was only used for topic timers. Also moved out the notice that is displayed which was also only relevant for topic timers.
33 lines
556 B
SCSS
33 lines
556 B
SCSS
.custom-date-time-wrap {
|
|
padding: 1em 1em 0.5em;
|
|
border: 1px solid var(--primary-low);
|
|
border-top: none;
|
|
background: var(--primary-very-low);
|
|
.d-icon {
|
|
padding: 0 0.75em 0 0;
|
|
color: var(--primary-high);
|
|
margin-top: -0.5em;
|
|
}
|
|
|
|
.tap-tile-date-input,
|
|
.tap-tile-time-input {
|
|
display: flex;
|
|
align-items: center;
|
|
input {
|
|
width: 100%;
|
|
min-width: unset;
|
|
}
|
|
}
|
|
|
|
.date-picker,
|
|
.time-input {
|
|
text-align: left;
|
|
padding-top: 5px;
|
|
}
|
|
|
|
.time-input,
|
|
.date-picker-wrapper {
|
|
flex: 1 1 auto;
|
|
}
|
|
}
|