Skip to content

Commit

Permalink
fix: use s-box style for time input
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Dec 11, 2024
1 parent 002b66f commit d3486b4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions apps/ui/src/components/Modal/DateTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,28 @@ watch(
<template #header>
<h3 v-text="current.title" />
</template>
<div :class="['!m-4 text-center', { 's-error': formError }]">
<div :class="['s-box !m-4 text-center', { 's-error': formError }]">
<UiCalendar
v-if="isCurrent('date')"
:min="min"
:selected="date"
@pick="handleDateUpdate"
/>
<template v-else-if="isCurrent('time')">
<input
v-model="time"
type="time"
class="s-input mx-auto max-w-[140px] text-center text-lg"
/>
<div v-else-if="isCurrent('time')" class="s-base">
<div class="relative mx-auto max-w-[140px]">
<label class="s-label w-full">Time</label>
<input
v-model="time"
type="time"
class="s-input text-center text-lg"
/>
</div>
<span
v-if="formError"
class="s-input-error-message"
v-text="formError"
/>
</template>
</div>
</div>
<template #footer>
<div class="flex space-x-3">
Expand Down

0 comments on commit d3486b4

Please sign in to comment.