Skip to content

A platform for community discussion. Free, open, simple.

UX: improve edit history display (#21474)

Canapind537265ddd8a
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);
}