diff --git a/src/components/common/NativeDateSelect.vue b/src/components/common/NativeDateSelect.vue index c364047..224516d 100644 --- a/src/components/common/NativeDateSelect.vue +++ b/src/components/common/NativeDateSelect.vue @@ -214,36 +214,39 @@ const updatePart = (part: DatePart, value: string) => { @media (max-width: 639px) { :global(.analytics-date-range) { - --native-date-width: 100%; - display: grid !important; + --native-date-width: auto; + display: flex !important; width: 100%; - grid-template-columns: minmax(0, 1fr); - gap: 0.5rem !important; + flex-wrap: nowrap !important; + gap: 0.2rem !important; } .native-date-strip { + width: min-content; + min-width: 0; + flex: 1 1 0; min-height: 2.75rem; - padding-inline: 0.5rem; + padding-inline: 0.2rem; } .native-date-part { height: 2.75rem; - min-width: 2.75rem; - font-size: 0.9rem; + min-width: 0; + font-size: clamp(0.75rem, 3.4vw, 0.9rem); } .native-date-year { - width: 5.25rem; + width: clamp(3.35rem, 15vw, 4rem); } .native-date-month, .native-date-day { - width: 2.75rem; + width: clamp(1.7rem, 8vw, 2.2rem); } .native-date-separator { - margin-inline: clamp(0.12ch, 0.55vw, 0.3ch); - font-size: clamp(0.8rem, 3.65vw, 0.95rem); + margin-inline: 0; + font-size: clamp(0.72rem, 3vw, 0.85rem); } } diff --git a/src/layout/AdminLayout/AdminLayout.vue b/src/layout/AdminLayout/AdminLayout.vue index 56b016e..3ce54c3 100644 --- a/src/layout/AdminLayout/AdminLayout.vue +++ b/src/layout/AdminLayout/AdminLayout.vue @@ -14,11 +14,11 @@