Browse Source

🐛 Fix Table overflow layout (#21905)

unscrollable table should not have overflow style

close #21879 by revert #20705
pull/21912/head
偏右 5 years ago
committed by GitHub
parent
commit
164a4ac3b4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/table/__tests__/__snapshots__/demo.test.js.snap
  2. 5
      components/table/style/index.less
  3. 2
      package.json

2
components/table/__tests__/__snapshots__/demo.test.js.snap

@ -4939,7 +4939,7 @@ exports[`renders ./components/table/demo/fixed-columns.md correctly 1`] = `
>
<div
class="ant-table-content"
style="overflow-x:scroll"
style="overflow-x:scroll;overflow-y:hidden"
>
<table
style="width:1300px;min-width:100%;table-layout:fixed"

5
components/table/style/index.less

@ -589,11 +589,6 @@
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
}
}
// Fix for chrome overflow show the scrollbar
&:not(&-fixed-header) &-content {
overflow-y: hidden;
}
}
@media all and (-ms-high-contrast: none) {

2
package.json

@ -123,7 +123,7 @@
"rc-slider": "~9.2.1",
"rc-steps": "~3.5.0",
"rc-switch": "~1.9.0",
"rc-table": "~7.1.0",
"rc-table": "~7.2.0",
"rc-tabs": "~10.0.0",
"rc-tooltip": "~4.0.0",
"rc-tree": "~3.0.0",

Loading…
Cancel
Save