Skip to content

Commit

Permalink
fix(picker): fix page reflow caused by text size change
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Sep 22, 2024
1 parent b20a368 commit f786eaf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/varlet-cli/site/mobile/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ body {
padding: 15px 0;
color: var(--site-config-color-sub-text);
font-size: 14px;
min-height: 50px;
}
header {
Expand Down
2 changes: 2 additions & 0 deletions packages/varlet-ui/src/date-picker/date-picker.less
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
align-items: center;
justify-content: space-between;
margin-bottom: var(--date-picker-title-year-margin-bottom);
min-height: 21px;
}

&-hint {
Expand Down Expand Up @@ -246,6 +247,7 @@
width: var(--day-picker-content-item-width);
font-size: var(--day-picker-content-item-font-size);
padding: var(--day-picker-content-item-padding);
min-height: 21px;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/varlet-ui/src/time-picker/timePicker.less
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
color: var(--time-picker-title-hint-color);
font-size: var(--time-picker-title-hint-font-size);
margin-bottom: var(--time-picker-title-margin-bottom);
min-height: 21px;
}

&-time-container {
Expand Down

0 comments on commit f786eaf

Please sign in to comment.