A platform for community discussion. Free, open, simple.
UX: improve appearance of "show full post" button (#38329)
Krisc07d40ca2a28
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scssindex 11088d7e136..60e3934fa8f 100644--- a/app/assets/stylesheets/common/base/topic-post.scss+++ b/app/assets/stylesheets/common/base/topic-post.scss@@ -559,17 +559,6 @@ nav.post-controls {}button {- &.expand-post {- @include viewport.until(sm) {- margin: var(--control-space) 0 var(--control-space) 0;- }-- @include viewport.from(sm) {- margin-top: var(--space-3);- margin-left: var(--topic-body-width-padding);- }- }-.discourse-no-touch & {&:hover,&:focus-visible,@@ -715,6 +704,17 @@ nav.post-controls {}}+.expand-post {+ @include viewport.until(sm) {+ margin: var(--space-3) 0;+ }++ @include viewport.from(sm) {+ margin-top: var(--space-3);+ margin-left: var(--topic-body-width-padding);+ }+}+.deleted {.regular > .cooked {background-color: var(--danger-low-mid);diff --git a/frontend/discourse/app/components/post.gjs b/frontend/discourse/app/components/post.gjsindex e928dbab44a..b1a4cf41855 100644--- a/frontend/discourse/app/components/post.gjs+++ b/frontend/discourse/app/components/post.gjs@@ -593,7 +593,7 @@ export default class Post extends Component {)}}<DButton- class="post__expand-button expand-post"+ class="btn-default post__expand-button expand-post"@action={{this.expandFirstPost}}@translatedLabel={{ifthis.expandedFirstPost.isPending