Skip to content

Commit 33679f3

Browse files
committed
fix: make the year toggle button smaller
Make the year toggle button smaller and right positioned Closes #26
1 parent c8094d5 commit 33679f3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/vcf-date-range-picker-overlay-content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class DatePickerOverlayContentElement extends ThemableMixin(DirMixin(GestureEven
5454
display: flex;
5555
}
5656
57-
[part="years-toggle-button"][desktop] {
57+
[part="overlay-header"][desktop] {
5858
display: none;
5959
}
6060

theme/lumo/vcf-date-range-picker-overlay-content-styles.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,21 @@ registerStyles(
140140
/* Narrow viewport mode (fullscreen) */
141141
142142
:host([fullscreen]) [part="toolbar"] {
143-
order: -1;
143+
order: -3;
144144
background-color: var(--lumo-base-color);
145145
}
146146
147147
:host([fullscreen]) [part="overlay-header"] {
148148
order: -2;
149149
height: var(--lumo-size-m);
150150
padding: var(--lumo-space-s);
151-
position: absolute;
152151
left: 0;
153152
right: 0;
154-
justify-content: center;
153+
justify-content: end;
154+
padding-top: 0px;
155+
padding-right: 3px;
156+
padding-bottom: 1px;
157+
height: 0px;
155158
}
156159
157160
:host([fullscreen]) [part="toggle-button"],
@@ -163,7 +166,9 @@ registerStyles(
163166
/* Very narrow screen (year scroller initially hidden) */
164167
165168
[part="years-toggle-button"] {
169+
font-size: var(--lumo-font-size-s);
166170
position: relative;
171+
top: -7px;
167172
right: auto;
168173
display: flex;
169174
align-items: center;

0 commit comments

Comments
 (0)