Skip to content

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

UX: improve styling of "show post" button in user notes (#39061)

Kris7413ea4272f7
diff --git a/plugins/discourse-user-notes/assets/javascripts/discourse/components/user-note.gjs b/plugins/discourse-user-notes/assets/javascripts/discourse/components/user-note.gjs
index 6523b800639..a4473fe003b 100644
--- a/plugins/discourse-user-notes/assets/javascripts/discourse/components/user-note.gjs
+++ b/plugins/discourse-user-notes/assets/javascripts/discourse/components/user-note.gjs
@@ -47,7 +47,10 @@ const UserNote = <template>
<CookText @rawText={{@note.raw}} />
</div>
{{#if @note.post_id}}
- <a href={{@note.post_url}} class="btn btn-small">
+ <a
+ href={{@note.post_url}}
+ class="btn btn-default btn-small show-post"
+ >
{{i18n "user_notes.show_post"}}
</a>
{{/if}}
diff --git a/plugins/discourse-user-notes/assets/stylesheets/user_notes.scss b/plugins/discourse-user-notes/assets/stylesheets/user_notes.scss
index fa808bde844..0ced51943d4 100644
--- a/plugins/discourse-user-notes/assets/stylesheets/user_notes.scss
+++ b/plugins/discourse-user-notes/assets/stylesheets/user_notes.scss
@@ -46,6 +46,10 @@
.show-reviewable {
margin-right: 0.5em;
}
+
+ .show-post {
+ margin-bottom: var(--space-4);
+ }
}
.show-user-notes-on-flags {