Skip to content

Commit

Permalink
Wide table fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rado committed May 8, 2023
1 parent 55420a7 commit f3343f1
Show file tree
Hide file tree
Showing 18 changed files with 2,952 additions and 2,967 deletions.
12 changes: 7 additions & 5 deletions components/table/table.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/table/table.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 14 additions & 8 deletions components/table/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@
@import "../../css/niui-setup";

.n-table {
overflow: auto;
border-collapse: collapse;
border-radius: var(--nui-border-radius);
box-shadow: 0 0 0 var(--nui-border-size) var(--nui-border-color), 0 0 var(--nui-shadow-blur) calc(var(--nui-border-size) + var(--nui-shadow-size)) var(--nui-shadow-color);
display: inline-block;

&,
&--wide {
overflow: auto;
border-collapse: collapse;
border-radius: var(--nui-border-radius);
box-shadow: 0 0 0 var(--nui-border-size) var(--nui-border-color), 0 0 var(--nui-shadow-blur) calc(var(--nui-border-size) + var(--nui-shadow-size)) var(--nui-shadow-color);
display: inline-block;
}

&--wide {
display: table;
width: 100%;
overflow: hidden;
table-layout: fixed;
overflow: auto;
.n-table {
width: 100%;
display: table;
}
}

td,
Expand Down
4 changes: 2 additions & 2 deletions css/guide.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/guide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ html {

body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
margin: 0;
margin: auto;
padding: 0;
// overflow: hidden;
// background: darkcyan;
Expand Down
2 changes: 1 addition & 1 deletion dist/niui.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.css.size
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14324
14443
2 changes: 1 addition & 1 deletion dist/niui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.js.size
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12455
12394
5,502 changes: 2,753 additions & 2,749 deletions index.html

Large diffs are not rendered by default.

Loading

0 comments on commit f3343f1

Please sign in to comment.