Skip to content

Commit

Permalink
fix(LobbySettings): fix date picker alignment
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy authored and backportbot[bot] committed Dec 3, 2024
1 parent 87f67c2 commit 9841204
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/components/ConversationSettings/LobbySettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@
</div>
<NcDateTimePicker id="moderation_settings_lobby_timer_field"
aria-describedby="moderation_settings_lobby_timer_hint"
:value="lobbyTimer"
:model-value="lobbyTimer"
:default-value="defaultLobbyTimer"
:placeholder="t('spreed', 'Start time (optional)')"
:disabled="lobbyTimerFieldDisabled"
type="datetime"
value-type="timestamp"
format="YYYY-MM-DD HH:mm"
:minute-step="5"
:input-class="['mx-input', { focusable: !lobbyTimerFieldDisabled }]"
v-bind="dateTimePickerAttrs"
confirm
clearable
@change="saveLobbyTimer" />
<div class="lobby_timer--timezone">
{{ getTimeZone }}
Expand Down Expand Up @@ -152,17 +157,11 @@ export default {

dateTimePickerAttrs() {
return {
format: 'YYYY-MM-DD HH:mm',
firstDayOfWeek: window.firstDay + 1, // Provided by server
lang: {
days: window.dayNamesShort, // Provided by server
months: window.monthNamesShort, // Provided by server
},
confirm: true,
clearable: true,
minuteStep: 5,
appendToBody: true,
valueType: 'timestamp',
}
},

Expand Down

0 comments on commit 9841204

Please sign in to comment.