fix: table overflow

CB-247
This commit is contained in:
Wroud
2020-09-09 18:06:25 +03:00
parent 1750b15a70
commit 6fed738269
4 changed files with 15 additions and 1 deletions
@@ -26,6 +26,7 @@ const styles = composes(
`,
css`
box {
box-sizing: border-box;
padding: 24px;
min-height: 320px;
max-height: 500px;
@@ -25,6 +25,9 @@ const styles = composes(
}
`,
css`
Table {
width: 100%;
}
TableColumnHeader {
border-top: solid 1px;
}
@@ -12,10 +12,15 @@
min-width: 100%;
text-align: left;
border-collapse: collapse;
table-layout: fixed;
&[use|size="big"] {
> thead > tr > th {
height: 54px;
&[use|min] {
width: 46px;
}
}
> tbody > tr > td {
@@ -53,6 +58,7 @@
}
th {
box-sizing: border-box;
white-space: nowrap;
padding: 16px;
height: 36px;
@@ -64,7 +70,7 @@
text-decoration: none !important;
&[use|min] {
width: 1%;
width: 28px;
}
&:last-child {
@@ -74,6 +80,7 @@
td {
position: relative;
box-sizing: border-box;
height: 28px;
padding: 0 16px;
transition: padding ease-in-out 0.24s;
@@ -19,6 +19,9 @@ import { useStyles } from '@cloudbeaver/core-theming';
import { User } from './User';
const styles = css`
Table {
width: 100%;
}
TableColumnHeader {
border-top: solid 1px;
}