aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-26 07:50:04 +0100
committerGitHub <noreply@github.com>2024-03-26 06:50:04 +0000
commitdd75237c3492140140c7413d788bd961692048d8 (patch)
treea48943851c365b05a5688e4226f3c816e5d62bb1
parent08aec2c20adae8e6f04cac08566a8decd818e5cd (diff)
downloadgitea-dd75237c3492140140c7413d788bd961692048d8.tar.gz
gitea-dd75237c3492140140c7413d788bd961692048d8.zip
Fix table header text-align (#30084)
Fix regression from https://github.com/go-gitea/gitea/pull/30047. Apparently tables have certain user-agent styles that center inside `<th>` etc. Restored the original fomantic rules for these. Before: <img width="1332" alt="Screenshot 2024-03-25 at 21 59 33" src="https://github.com/go-gitea/gitea/assets/115237/e06a5509-b505-4752-9b6e-91d5ed49f61d"> After: <img width="1330" alt="Screenshot 2024-03-25 at 21 59 40" src="https://github.com/go-gitea/gitea/assets/115237/6444817f-dd61-4a1e-a8b3-959c2780148d">
-rw-r--r--web_src/css/modules/table.css4
1 files changed, 4 insertions, 0 deletions
diff --git a/web_src/css/modules/table.css b/web_src/css/modules/table.css
index 962a5f52a6..eabca31a17 100644
--- a/web_src/css/modules/table.css
+++ b/web_src/css/modules/table.css
@@ -23,11 +23,13 @@
}
.ui.table > thead,
.ui.table > tbody {
+ text-align: inherit;
vertical-align: inherit;
}
.ui.table > thead > tr > th {
background: var(--color-box-header);
+ text-align: inherit;
color: var(--color-text);
padding: 6px 5px;
vertical-align: inherit;
@@ -52,6 +54,7 @@
.ui.table > tfoot > tr > td {
border-top: 1px solid var(--color-secondary);
background: var(--color-box-body);
+ text-align: inherit;
color: var(--color-text);
padding: 0.78571429em;
vertical-align: inherit;
@@ -78,6 +81,7 @@
.ui.table > tbody > tr > td {
border-top: 1px solid var(--color-secondary-alpha-50);
padding: 6px 5px;
+ text-align: inherit;
}
.ui.table > tr:first-child > td,
.ui.table > tbody > tr:first-child > td {