Skip to content

Commit fde48f9

Browse files
authored
fix(module:table): custom column styles collapse when using nzScroll (#8044)
1 parent 5834e46 commit fde48f9

File tree

2 files changed

+47
-48
lines changed

2 files changed

+47
-48
lines changed

components/table/style/index.less

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -734,54 +734,6 @@
734734
}
735735
}
736736

737-
.@{table-prefix-cls}-custom-column {
738-
col {
739-
width: auto !important;
740-
min-width: auto !important;
741-
display: none;
742-
}
743-
744-
.@{table-prefix-cls}-thead {
745-
.@{table-prefix-cls}-row {
746-
width: 100%;
747-
display: flex;
748-
justify-content: space-between;
749-
750-
th {
751-
overflow: hidden;
752-
}
753-
}
754-
}
755-
756-
.@{table-prefix-cls}-tbody {
757-
.@{table-prefix-cls}-row {
758-
width: 100%;
759-
display: flex;
760-
justify-content: space-between;
761-
762-
td {
763-
overflow: hidden;
764-
}
765-
766-
.nz-disable-td {
767-
width: 100%;
768-
}
769-
}
770-
}
771-
772-
.ant-table-fixed {
773-
tr {
774-
.ant-table-cell-fix-left-last, .ant-table-cell-fix-right-first {
775-
overflow: visible;
776-
}
777-
}
778-
779-
.@{table-prefix-cls}-row {
780-
width: 100%;
781-
}
782-
}
783-
}
784-
785737
@media all and (-ms-high-contrast: none) {
786738
.@{table-prefix-cls} {
787739
&-ping-left {

components/table/style/patch.less

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,50 @@ cdk-virtual-scroll-viewport.ant-table-body {
137137
}
138138
}
139139

140+
.@{table-prefix-cls}-custom-column {
141+
col {
142+
width: auto !important;
143+
min-width: auto !important;
144+
display: none;
145+
}
146+
147+
.@{table-prefix-cls}-thead {
148+
.@{table-prefix-cls}-row, tr {
149+
width: 100%;
150+
display: flex;
151+
justify-content: space-between;
152+
153+
th {
154+
overflow: hidden;
155+
}
156+
}
157+
}
158+
159+
.@{table-prefix-cls}-tbody {
160+
.@{table-prefix-cls}-row, tr {
161+
width: 100%;
162+
display: flex;
163+
justify-content: space-between;
164+
165+
td {
166+
overflow: hidden;
167+
}
168+
169+
.nz-disable-td {
170+
width: 100%;
171+
}
172+
}
173+
}
174+
175+
.ant-table-fixed {
176+
tr {
177+
.ant-table-cell-fix-left-last, .ant-table-cell-fix-right-first {
178+
overflow: visible;
179+
}
180+
}
181+
182+
.@{table-prefix-cls}-row {
183+
width: 100%;
184+
}
185+
}
186+
}

0 commit comments

Comments
 (0)