mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -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>
|
</div>
|
||||||
{{/unless}}
|
{{/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">
|
<div class="control-group format">
|
||||||
<label>{{i18n
|
<label>{{i18n
|
||||||
"discourse_local_dates.create.form.format_title"
|
"discourse_local_dates.create.form.format_title"
|
||||||
@ -169,25 +182,6 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -265,7 +265,7 @@ div[data-tippy-root] {
|
|||||||
|
|
||||||
.recurrence {
|
.recurrence {
|
||||||
.recurrence-input {
|
.recurrence-input {
|
||||||
width: 300px;
|
width: 350px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -298,7 +298,7 @@ div[data-tippy-root] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.timezones-input {
|
.timezones-input {
|
||||||
width: 99%;
|
width: 350px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user