From d537265ddd8acc299c47a0e5d14d35fd8e8dc2e8 Mon Sep 17 00:00:00 2001 From: Canapin Date: Wed, 24 May 2023 02:59:13 +0200 Subject: [PATCH] UX: improve edit history display (#21474) --- .../stylesheets/common/base/history.scss | 23 +++++++++++++++++-- app/assets/stylesheets/mobile/history.scss | 3 --- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/common/base/history.scss b/app/assets/stylesheets/common/base/history.scss index 68f52872e9a..50ad845d1ec 100644 --- a/app/assets/stylesheets/common/base/history.scss +++ b/app/assets/stylesheets/common/base/history.scss @@ -31,9 +31,28 @@ padding: 5px; } - #revisions .row:first-of-type { - margin-top: 10px; + #revisions { + .row:first-of-type { + margin-top: 10px; + } + table { + thead { + th { + padding-bottom: 2px; + font-weight: bold; + color: var(--primary); + } + } + + td { + padding: 3px 3px 3px 0.5em; + img { + max-width: none; + } + } + } } + ins, .diff-ins { code, diff --git a/app/assets/stylesheets/mobile/history.scss b/app/assets/stylesheets/mobile/history.scss index 6890c832b83..0bfb38882e8 100644 --- a/app/assets/stylesheets/mobile/history.scss +++ b/app/assets/stylesheets/mobile/history.scss @@ -8,9 +8,6 @@ .modal-inner-container { min-height: 400px; } - #revisions { - max-width: 90vw; - } #revision-numbers { line-height: var(--line-height-large); }