Skip to content

Commit

Permalink
fix: 修复下钻面板标题不展示
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Oct 14, 2024
1 parent bcb1e0d commit e7a642c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/s2-react/playground/drill-down.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const partDrillDown: PartDrillDown = {
type: 'text',
},
],
extra: <div>test</div>,
extra: <div style={{ margin: '4px 16px' }}>test</div>,
},
// drillItemsNum: 1,
fetchData: (meta, drillFields) =>
Expand Down
6 changes: 1 addition & 5 deletions packages/s2-shared/src/styles/drill-down.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
width: 260px;
min-height: 20px;
position: relative;
color: var(--antv-s2-font-70, #fff);
color: var(--antv-s2-font-70, rgba(0, 0, 0, 0.9));

&-header {
display: flex;
Expand Down Expand Up @@ -42,10 +42,6 @@
}
}

&-extra {
margin: 4px 16px;
}

&-menu {
max-height: 314px;
overflow: hidden auto;
Expand Down

0 comments on commit e7a642c

Please sign in to comment.