Skip to content

Commit

Permalink
style: add range-picker header overflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxiaolang committed Jun 18, 2024
1 parent d68ba38 commit eed0ff8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/date-picker/calendar/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

$block: aui-calendar-header;
$prev-next-icon-button-width: 24px;
$prev-next-icon-button-spacing: 2px;

.#{$block} {
&__container {
Expand All @@ -13,7 +14,10 @@ $prev-next-icon-button-width: 24px;

&__nav-content {
flex: 1;
max-width: calc(100% - $prev-next-icon-button-width * 4);
max-width: calc(
100% - $prev-next-icon-button-width * 4 - $prev-next-icon-button-spacing *
2
);
display: flex;
flex-wrap: wrap;
justify-content: center;
Expand Down
1 change: 1 addition & 0 deletions src/date-picker/calendar/range-picker-panel/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ $block: aui-date-range-picker-panel;

aui-calendar-header {
flex: 0 0 $range-picker-header-width;
max-width: 50%;
}
}

Expand Down

0 comments on commit eed0ff8

Please sign in to comment.