Skip to content

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

UX: add missing post notice styling (#35093)

chapoidb6f47f2971b
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index ec81eca56b7..33fc32d4fdb 100644
--- a/app/assets/stylesheets/common/base/topic-post.scss
+++ b/app/assets/stylesheets/common/base/topic-post.scss
@@ -1509,16 +1509,14 @@ span.mention {
border-top: 1px solid var(--content-border-color);
display: flex;
width: 100%;
- max-width: calc(
- var(--topic-body-width) + (var(--topic-body-width-padding) * 2) +
- var(--topic-avatar-width)
- );
- padding: var(--topic-body-width-padding);
+ max-width: 100%;
+ padding: var(--space-2) var(--space-4);
font-size: var(--font-down-1-rem);
border-radius: var(--d-border-radius);
+ gap: var(--space-2);
- &.new-user {
- gap: var(--space-2);
+ @include viewport.until(sm) {
+ margin-bottom: var(--space-4);
}
&.custom {
@@ -1530,25 +1528,19 @@ span.mention {
height: 1.5em;
}
- .post-notice-message {
- p {
- display: inline;
- }
-
- .custom_created_by {
- display: inline-block;
- }
+ .d-icon {
+ width: 1.25em;
+ height: 1.25em;
+ color: var(--primary-high);
}
p {
+ display: inline;
margin: 0;
}
- .d-icon {
- font-size: 2em;
- width: var(--topic-avatar-width);
- color: var(--primary-high);
- margin-right: var(--topic-body-width-padding);
+ .custom_created_by {
+ display: inline-block;
}
}
diff --git a/app/assets/stylesheets/mobile/topic-post.scss b/app/assets/stylesheets/mobile/topic-post.scss
index 0a3d164703b..3fe3654b6b4 100644
--- a/app/assets/stylesheets/mobile/topic-post.scss
+++ b/app/assets/stylesheets/mobile/topic-post.scss
@@ -417,16 +417,6 @@ span.highlighted {
}
}
-.post-notice {
- box-sizing: border-box;
- margin-bottom: 1em;
-
- &.old {
- border-top: none;
- padding-top: 0;
- }
-}
-
.posts-filtered-notice {
padding-right: 8.5em;
padding-bottom: max(1em, env(safe-area-inset-bottom));