Skip to content

fix(grid): Fix the table css in saas mode #3532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/theme-saas/src/grid/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
@apply bottom-0;
@apply top-0;
@apply m-auto;
@apply w-8;
@apply w-4;
@apply h-9;
@apply text-center;
// 因为与AUI冻结实现方式不一样,此处不要同步 @apply ~'z-[1]'
Expand Down
3 changes: 1 addition & 2 deletions packages/theme-saas/src/grid/mixins/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@apply overflow-hidden;
@apply text-ellipsis;
@apply whitespace-nowrap;
@apply pl-4;
@apply pl-2;
@apply box-border;
line-height: 1.375rem;
}
Expand All @@ -35,7 +35,6 @@
.@{grid-cell-prefix-cls} {
.TextEllipsis();
line-height: 1.375rem;
@apply pr-4;

// 表头布局从block改为了flex,此处兼容插槽文本溢出不显示省略号问题
&:not(:has(.tiny-grid-cell-text)) > span:only-of-type:not(.@{grid-cell-prefix}__expanded) {
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-saas/src/grid/table-global.less
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
@apply text-left;

&:not(.col__ellipsis) {
@apply ~'py-0.5' px-4;
@apply ~'py-0.5' px-2;
}

&.col__current {
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-saas/src/grid/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@
@apply text-left;

&:not(.col__ellipsis) {
@apply ~'py-0.5' px-4;
@apply ~'py-0.5' px-2;
}

&.col__current {
Expand Down
Loading