Skip to content

Commit 9f47323

Browse files
committed
remove table-layout: fixed from repo files table
1 parent d3c71ae commit 9f47323

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

web_src/css/base.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,22 @@
2525
--tab-size: 4;
2626
--checkbox-size: 15px; /* height and width of checkbox and radio inputs */
2727
--page-spacing: 16px; /* space between page elements */
28+
--page-margin-x: 32px; /* minimum space on left and right side of page */
2829
}
2930

31+
@media (min-width: 768px) and (max-width: 1200px) {
32+
:root {
33+
--page-margin-x: 16px;
34+
}
35+
}
36+
37+
@media (max-width: 767.98px) {
38+
:root {
39+
--page-margin-x: 8px;
40+
}
41+
}
42+
43+
3044
:root * {
3145
--fonts-regular: var(--fonts-override, var(--fonts-proportional)), "Noto Sans", "Liberation Sans", sans-serif, var(--fonts-emoji);
3246
}

web_src/css/modules/container.css

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,11 @@
4949
/* overwrite width of containers inside the main page content div (div with class "page-content") */
5050
.page-content .ui.ui.ui.container:not(.fluid) {
5151
width: 1280px;
52-
max-width: calc(100% - 64px);
52+
max-width: calc(100% - calc(2 * var(--page-margin-x)));
5353
margin-left: auto;
5454
margin-right: auto;
5555
}
5656

5757
.ui.container.fluid.padded {
58-
padding: 0 32px;
59-
}
60-
61-
/* enable fluid page widths for medium size viewports */
62-
@media (min-width: 768px) and (max-width: 1200px) {
63-
.page-content .ui.ui.ui.container:not(.fluid) {
64-
max-width: calc(100% - 32px);
65-
}
66-
.ui.container.fluid.padded {
67-
padding: 0 16px;
68-
}
69-
}
70-
71-
@media (max-width: 767.98px) {
72-
.page-content .ui.ui.ui.container:not(.fluid) {
73-
max-width: calc(100% - 16px);
74-
}
75-
.ui.container.fluid.padded {
76-
padding: 0 8px;
77-
}
58+
padding: 0 var(--page-margin-x);
7859
}

web_src/css/repo.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,9 @@ td .commit-summary {
212212
overflow-wrap: anywhere;
213213
}
214214

215-
.repository.file.list #repo-files-table {
216-
table-layout: fixed;
215+
/* this is what limits the commit table width to a value that works on all viewport sizes */
216+
#repo-files-table th:first-of-type {
217+
max-width: calc(calc(min(100vw, 1280px)) - 145px - calc(2 * var(--page-margin-x)));
217218
}
218219

219220
.repository.file.list #repo-files-table thead th {

0 commit comments

Comments
 (0)