Skip to content

Commit

Permalink
fix: 修复 MapTheme 换行样式问题 (#2091)
Browse files Browse the repository at this point in the history
  • Loading branch information
heiyexing authored Nov 28, 2023
1 parent fc6882a commit 611ce8b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions packages/component/src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -293,18 +293,19 @@
flex-wrap: wrap;
align-items: flex-start;
box-sizing: content-box;
max-width: 420px;
max-width: 460px;
max-height: 400px;
margin: 12px 0 0 12px;
overflow: auto;
overflow-x: hidden;
overflow-y: auto;
}
.l7-select-control--image .l7-select-control-item {
position: relative;
display: flex;
flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);
flex-direction: column;
justify-content: center;
box-sizing: content-box;
width: 408px / 3 - 12px;
margin-right: 12px;
margin-bottom: 12px;
overflow: hidden;
Expand Down
14 changes: 8 additions & 6 deletions packages/component/src/css/select.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,25 @@
}

.l7-select-control--image {
@select-control-split: 12px;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
box-sizing: content-box;
max-width: @l7-select-control-image-width;
max-width: 460px;
max-height: 400px;
margin: 12px 0 0 12px;
overflow: auto;
margin: @select-control-split 0 0 @select-control-split;
overflow-x: hidden;
overflow-y: auto;
.l7-select-control-item {
position: relative;
display: flex;
flex: 0 0 calc((100% - (@select-control-split + 9px) * 2) / 3);
flex-direction: column;
justify-content: center;
box-sizing: content-box;
width: (@l7-select-control-image-width - 12px) / 3 - 12px;
margin-right: 12px;
margin-bottom: 12px;
margin-right: @select-control-split;
margin-bottom: @select-control-split;
overflow: hidden;
font-size: 12px;
border: 1px solid @l7-popper-control-bg-color;
Expand Down
2 changes: 0 additions & 2 deletions packages/component/src/css/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
// SelectControl
@l7-select-control-active-color: #0370fe;

@l7-select-control-image-width: 420px;

@position-list: top, right, bottom, left;

@l7-control-z-index: 999;

0 comments on commit 611ce8b

Please sign in to comment.