From b08c7afe5f60075ed62a5ffe034b88624983d007 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 27 Mar 2024 22:47:40 +0100 Subject: [PATCH] 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. --- web_src/css/modules/table.css | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/web_src/css/modules/table.css b/web_src/css/modules/table.css index eabca31a170..4fb9d4214e0 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;