From 44c0ecdbfa8adccafb0042c6ec09f3ae69ea03bb Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 26 Feb 2023 22:45:58 +0200 Subject: [PATCH] Fix middle vertical align on table cells For merged cells, middle vertical alignment would not work properly (it was either aligned to the top or bottom). --- src/public/stylesheets/print.css | 7 +++++++ src/public/stylesheets/style.css | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/src/public/stylesheets/print.css b/src/public/stylesheets/print.css index afc77970d..118a0d0d3 100644 --- a/src/public/stylesheets/print.css +++ b/src/public/stylesheets/print.css @@ -13,4 +13,11 @@ .relation-map-wrapper { height: 100vh !important; } + + .table thead th, + .table td, .table th { + /* Fix center vertical alignment of table cells */ + vertical-align: middle; + } + } diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index e32fb4a47..bfa6a3a22 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -990,3 +990,9 @@ button.close:hover { textarea { cursor: auto; } + +.table thead th, +.table td, .table th { + /* Fix center vertical alignment of table cells */ + vertical-align: middle; +}