From 86f8e81251d48871ad27f8e67a39d0494e7b6251 Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 12 Nov 2021 15:17:30 +0100 Subject: [PATCH] Fixed alignment for number columns --- front/core/components/smart-table/style.scss | 11 ++++------- front/core/components/smart-table/table.scss | 5 ----- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/front/core/components/smart-table/style.scss b/front/core/components/smart-table/style.scss index 6b973c5b0..1e882f679 100644 --- a/front/core/components/smart-table/style.scss +++ b/front/core/components/smart-table/style.scss @@ -7,17 +7,14 @@ smart-table { cursor: pointer; align-items: center; - & > * { - display: flex - } } th[field][number] { & > :before { - display: flex; + vertical-align: middle; font-family: 'Material Icons'; content: 'arrow_downward'; color: $color-spacer; - margin: 2px 2px 0 0; + margin-right: 2px; opacity: 0 } @@ -42,11 +39,11 @@ smart-table { th[field]:not([number]) { & > :after { - display: flex; + vertical-align: middle; font-family: 'Material Icons'; content: 'arrow_downward'; color: $color-spacer; - margin: 2px 0 0 2px; + margin-left: 2px; opacity: 0 } diff --git a/front/core/components/smart-table/table.scss b/front/core/components/smart-table/table.scss index b5dc631a3..a654939db 100644 --- a/front/core/components/smart-table/table.scss +++ b/front/core/components/smart-table/table.scss @@ -32,12 +32,7 @@ smart-table table { text-overflow: ellipsis; &[number] { - flex-direction: column; text-align: right; - align-items:flex-end; - align-content: flex-end; - - justify-content: right; } &[centered] { text-align: center;