A platform for community discussion. Free, open, simple.
UX: Improve positioning of nested view floating actions (#41130)
Penar Musaraj1607ba57e63e
diff --git a/app/assets/stylesheets/common/nested-view.scss b/app/assets/stylesheets/common/nested-view.scssindex c88c5cc842c..f72ed0575a7 100644--- a/app/assets/stylesheets/common/nested-view.scss+++ b/app/assets/stylesheets/common/nested-view.scss@@ -355,15 +355,17 @@&__floating-actions {position: sticky;- bottom: 2em;- float: right;+ bottom: 0;z-index: z("header") - 2; // below header, above page content and footer-navdisplay: flex;align-items: center;+ justify-content: flex-end;+ padding-bottom: 1em;gap: 0.5em;transition:transform 0.3s ease,- opacity 0.3s ease;+ opacity 0.3s ease,+ bottom 0.3s ease;&.--hidden {opacity: 0;@@ -1297,10 +1299,6 @@}}- .nested-view__floating-actions {- bottom: 1em;- }-// Strip L-hook connectors on load-more buttons.nested-post-children__load-more::before {content: none;diff --git a/frontend/discourse/app/components/nested.gjs b/frontend/discourse/app/components/nested.gjsindex 54af494f281..d3f26687953 100644--- a/frontend/discourse/app/components/nested.gjs+++ b/frontend/discourse/app/components/nested.gjs@@ -965,6 +965,13 @@ export default class Nested extends Component {@outletArgs={{lazyHash model=@topic}}/>+ {{#unless this.isMobileFocused}}+ <NestedFloatingActions+ @topic={{@topic}}+ @replyAction={{fn @replyToPost @opPost 0}}+ />+ {{/unless}}+{{#if (and (not this.isMobileFocused) (not @hasMoreRoots))}}<PluginOutlet@name="topic-above-suggested"@@ -972,11 +979,6 @@ export default class Nested extends Component {@outletArgs={{lazyHash model=@topic}}/>- <NestedFloatingActions- @topic={{@topic}}- @replyAction={{fn @replyToPost @opPost 0}}- />-<MoreTopics @topic={{@topic}} /><PluginOutlet