mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
FIX: Better UX for timezones selector in date modal (#20047)
When expanding the "Advanced mode" of the date modal, the Timezones picker was at the bottom of the modal, and expanding it would often overflow the viewport. This PR moves the elment higher up, therefore avoiding the overflow. There's a small width change as well, for better consistency.
This commit is contained in:
parent
7441864474
commit
c43068720f
@ -133,6 +133,19 @@
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
<div class="control-group timezones">
|
||||
<label>{{i18n
|
||||
"discourse_local_dates.create.form.timezones_title"
|
||||
}}</label>
|
||||
<p>{{i18n
|
||||
"discourse_local_dates.create.form.timezones_description"
|
||||
}}</p>
|
||||
<div class="controls">
|
||||
<MultiSelect @valueProperty={{null}} @nameProperty={{null}} @class="timezones-input" @content={{this.allTimezones}}
|
||||
@value={{this.timezones}} @options={{hash allowAny=false maximum=5}} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group format">
|
||||
<label>{{i18n
|
||||
"discourse_local_dates.create.form.format_title"
|
||||
@ -169,25 +182,6 @@
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="control-group timezones">
|
||||
<label>{{i18n
|
||||
"discourse_local_dates.create.form.timezones_title"
|
||||
}}</label>
|
||||
<p>{{i18n
|
||||
"discourse_local_dates.create.form.timezones_description"
|
||||
}}</p>
|
||||
<div class="controls">
|
||||
<MultiSelect
|
||||
@valueProperty={{null}}
|
||||
@nameProperty={{null}}
|
||||
@class="timezones-input"
|
||||
@content={{this.allTimezones}}
|
||||
@value={{this.timezones}}
|
||||
@options={{hash allowAny=false maximum=5}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -265,7 +265,7 @@ div[data-tippy-root] {
|
||||
|
||||
.recurrence {
|
||||
.recurrence-input {
|
||||
width: 300px;
|
||||
width: 350px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -298,7 +298,7 @@ div[data-tippy-root] {
|
||||
}
|
||||
|
||||
.timezones-input {
|
||||
width: 99%;
|
||||
width: 350px;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user