summaryrefslogtreecommitdiffstats
path: root/web_src/css
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-27 22:47:40 +0100
committerGitHub <noreply@github.com>2024-03-27 21:47:40 +0000
commitb08c7afe5f60075ed62a5ffe034b88624983d007 (patch)
treededf907b17383ceef4bce4c963d784c80fe67f55 /web_src/css
parente5160185ed65fd1c2bcb2fc7dc7e0b5514ddb299 (diff)
downloadgitea-b08c7afe5f60075ed62a5ffe034b88624983d007.tar.gz
gitea-b08c7afe5f60075ed62a5ffe034b88624983d007.zip
Fix table alignment classes (#30144)
Fixes https://github.com/go-gitea/gitea/issues/30142, regression from https://github.com/go-gitea/gitea/pull/30047. I searched the codebase and only `bottom aligned` was definitely not in use so I removed it.
Diffstat (limited to 'web_src/css')
-rw-r--r--web_src/css/modules/table.css25
1 files changed, 25 insertions, 0 deletions
diff --git a/web_src/css/modules/table.css b/web_src/css/modules/table.css
index eabca31a17..4fb9d4214e 100644
--- a/web_src/css/modules/table.css
+++ b/web_src/css/modules/table.css
@@ -152,6 +152,31 @@
}
}
+.ui.table[class*="left aligned"],
+.ui.table [class*="left aligned"] {
+ text-align: left;
+}
+
+.ui.table[class*="center aligned"],
+.ui.table [class*="center aligned"] {
+ text-align: center;
+}
+
+.ui.table[class*="right aligned"],
+.ui.table [class*="right aligned"] {
+ text-align: right;
+}
+
+.ui.table[class*="top aligned"],
+.ui.table [class*="top aligned"] {
+ vertical-align: top;
+}
+
+.ui.table[class*="middle aligned"],
+.ui.table [class*="middle aligned"] {
+ vertical-align: middle;
+}
+
.ui.table th.collapsing,
.ui.table td.collapsing {
width: 1px;