File tree 6 files changed +76
-2
lines changed
6 files changed +76
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ const pageIcon = computed(() => (pageSize.value > 200 ? IconPageDouble : IconPag
81
81
<style scoped lang="scss">
82
82
.page-select {
83
83
flex : 0 0 5rem ;
84
+
85
+ @media (width < 600px ) {
86
+ max-width : 2.125rem ;
87
+ }
84
88
}
85
89
</style >
86
90
Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ const open = ref(false);
115
115
.date-picker {
116
116
flex : 0 1 33% ;
117
117
min-width : fit-content ;
118
+
119
+ @media (width < 600px ) {
120
+ flex : 0 0 8rem ;
121
+ min-width : auto ;
122
+ }
118
123
}
119
124
120
125
.search-input {
Original file line number Diff line number Diff line change @@ -116,10 +116,15 @@ const open = ref(false);
116
116
.date-picker {
117
117
flex : 0 1 33% ;
118
118
min-width : 14rem ;
119
+
120
+ @media (width < 600px ) {
121
+ flex : 1 0 9rem ;
122
+ min-width : auto ;
123
+ }
119
124
}
120
125
121
126
.search-input {
122
- flex : 1 1 calc (46% - 5rem );
127
+ flex : 2 1 calc (46% - 5rem );
123
128
min-width : 12rem ;
124
129
}
125
130
}
@@ -142,6 +147,20 @@ const open = ref(false);
142
147
max-height : calc (var (--full-height ) - #{layout .$safe-header-open-drawer-height } );
143
148
overflow : auto ;
144
149
scrollbar-width : thin ;
150
+
151
+ @media (width < 600px ) {
152
+ .n-date-panel-calendar--start {
153
+ margin-right : 5.0625rem ;
154
+ }
155
+
156
+ .n-date-panel-actions {
157
+ flex : 0 1 auto ;
158
+
159
+ .n-date-panel-actions__suffix {
160
+ flex-direction : column ;
161
+ }
162
+ }
163
+ }
145
164
}
146
165
}
147
166
</style >
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ useActiveAndDocumentVisible({
93
93
:options =" regionOptions"
94
94
:loading =" regionLoading"
95
95
:disabled =" loading || regionLoading || !regionOptions.length"
96
+ :consistent-menu-width =" false"
96
97
:to =" parentElement"
97
98
filterable
98
99
clearable
@@ -110,16 +111,31 @@ useActiveAndDocumentVisible({
110
111
.type-select {
111
112
flex : 0 0 10rem ;
112
113
min-width : fit-content ;
114
+
115
+ @media (width < 600px ) {
116
+ flex : 0 0 7rem ;
117
+ min-width : auto ;
118
+ }
113
119
}
114
120
115
121
.region-select {
116
122
flex : 1 0 10rem ;
117
123
min-width : fit-content ;
124
+
125
+ @media (width < 600px ) {
126
+ flex : 2 0 6rem ;
127
+ min-width : auto ;
128
+ }
118
129
}
119
130
120
131
.date-picker {
121
132
flex : 2 1 48% ;
122
133
min-width : fit-content ;
134
+
135
+ @media (width < 600px ) {
136
+ flex : 1 0 8rem ;
137
+ min-width : auto ;
138
+ }
123
139
}
124
140
}
125
141
</style >
Original file line number Diff line number Diff line change @@ -327,11 +327,20 @@ onActivated(() => {
327
327
.types-select {
328
328
flex : 0 1 12rem ;
329
329
min-width : fit-content ;
330
+
331
+ @media (width < 600px ) {
332
+ flex : 0 2 8rem ;
333
+ min-width : auto ;
334
+ }
330
335
}
331
336
332
337
.search-input {
333
- flex : 1 1 30% ;
338
+ flex : 2 1 30% ;
334
339
min-width : 12rem ;
340
+
341
+ @media (width < 600px ) {
342
+ min-width : auto ;
343
+ }
335
344
}
336
345
}
337
346
</style >
@@ -340,4 +349,19 @@ onActivated(() => {
340
349
.search-tooltip.search-tooltip {
341
350
margin-top : 12px ;
342
351
}
352
+
353
+ @media (width < 400px ) {
354
+ .n-auto-complete.search-input .n-input-wrapper .n-base-loading.n-base-suffix {
355
+ display : none ;
356
+ background-color : red ;
357
+ }
358
+ }
359
+
360
+ @media (width < 600px ) {
361
+ .n-select.types-select
362
+ .n-base-selection-tags
363
+ .n-base-selection-tag-wrapper :nth-child (2 ) {
364
+ display : none ;
365
+ }
366
+ }
343
367
</style >
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ const renderTag = ({ option }: { option: SelectOption }) => option.label?.toStri
125
125
:render-tag =" renderTag"
126
126
filterable
127
127
:placement =" placement"
128
+ :consistent-menu-width =" false"
128
129
>
129
130
<template #arrow >
130
131
<NIcon :component =" open ? IconLoop : selectedIcon" />
@@ -165,6 +166,11 @@ const renderTag = ({ option }: { option: SelectOption }) => option.label?.toStri
165
166
.list-select {
166
167
flex : 0 1 33% ;
167
168
min-width : fit-content ;
169
+
170
+ @media (width < 600px ) {
171
+ flex : 0 0 8rem ;
172
+ min-width : auto ;
173
+ }
168
174
}
169
175
170
176
.search-input {
You can’t perform that action at this time.
0 commit comments