Skip to content

Commit b69276a

Browse files
committed
fix(navbar): fix responsive css for date picker date-range mode
1 parent 0c6b1e4 commit b69276a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

src/components/views/history/HistoryNavbar.vue

+15-6
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const open = ref(false);
5858
<NFlex class="row" align="center" justify="space-evenly" :wrap="false">
5959
<NDatePicker
6060
v-model:show="open"
61-
class="date-picker"
61+
class="date-picker date-range"
6262
type="daterange"
6363
:to="parentElement"
6464
:default-value="[Date.now(), Date.now()]"
@@ -115,13 +115,22 @@ const open = ref(false);
115115
</style>
116116

117117
<style lang="scss">
118+
/* stylelint-disable selector-class-pattern -- library class name */
119+
120+
@use '~/styles/layout' as layout;
121+
118122
.n-date-panel {
119-
display: inline-flex;
120-
flex-wrap: wrap;
121-
justify-content: center;
122-
max-width: min(36.5rem, 100dvw);
123123
margin-top: 12px;
124124
margin-left: -16px;
125-
scrollbar-width: thin;
125+
126+
&.n-date-panel--daterange {
127+
display: inline-flex;
128+
flex-wrap: wrap;
129+
justify-content: center;
130+
max-width: min(36.5rem, 100dvw);
131+
max-height: calc(var(--full-height) - #{layout.$header-open-drawer-height});
132+
overflow: auto;
133+
scrollbar-width: thin;
134+
}
126135
}
127136
</style>

0 commit comments

Comments
 (0)