Skip to content

Commit d5ad689

Browse files
committed
fix: 修复图例说明面板内容被遮挡的问题
1 parent 9846b0d commit d5ad689

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/LegendPanel.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
background: #fff;
33
border-radius: 8px;
44
border: 1px solid #e0e0e0;
5-
overflow: hidden;
5+
margin-bottom: 12px;
66
}
77

88
.legend-header {
@@ -38,6 +38,7 @@
3838

3939
.legend-content {
4040
padding: 10px;
41+
overflow: visible;
4142
}
4243

4344
.legend-section {
@@ -60,7 +61,7 @@
6061
.legend-items {
6162
display: flex;
6263
flex-wrap: wrap;
63-
gap: 6px;
64+
gap: 8px 12px;
6465
}
6566

6667
.legend-item {
@@ -71,7 +72,8 @@
7172
border-radius: 4px;
7273
cursor: pointer;
7374
transition: all 0.2s ease;
74-
font-size: 11px;
75+
font-size: 12px;
76+
white-space: nowrap;
7577
}
7678

7779
.legend-item:hover,

0 commit comments

Comments
 (0)