Skip to content

Commit

Permalink
fix: 容器监控table图例样式错误 --Bug=137148399 (#4805)
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 29265
  • Loading branch information
liangling0628 authored Jan 14, 2025
1 parent 24cec9b commit b678625
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
.uptime-check-cards-container {
width: 100%;

.title {
display: flex;
justify-content: space-between;
align-items: center;
justify-content: space-between;
height: 30px;
padding: 0 16px;
background: #eaebf0;
border-radius: 2px;
padding: 0 16px;

.left {
font-size: 14px;
color: #63656e;
}

.right-btn {
font-size: 12px;
}
}

.content {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(365px, 1fr));
grid-column-gap: 16px;
grid-row-gap: 8px;
grid-column-gap: 16px;
padding: 8px 0;

&.pack-up {
height: 214px;
overflow-y: hidden;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

.table-legend {
display: grid;
grid-template-rows: auto 1fr; /* 表头自动高度,表体占满剩余空间 */
grid-template-rows: repeat(auto-fill, 26px); /* 表头自动高度,表体占满剩余空间 */
grid-template-columns: minmax(0, 1fr) minmax(80px, auto) minmax(80px, auto); /* 第一列沾满宽度,其他列自适应 */
width: 100%;
height: 100%;
Expand All @@ -65,18 +65,20 @@
width: 4px;
height: 4px;
}

&::-webkit-scrollbar-thumb {
background: #ddd;
border-radius: 20px;
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
}

colgroup {
display: none;
}

thead, tbody,tr {
thead,
tbody,
tr {
display: contents; /* 避免额外的容器影响布局 */
}

Expand Down

0 comments on commit b678625

Please sign in to comment.