Skip to content

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

UX: Contrain nested topic view to same max width as regular topic view (#39617)

Mark VanLandingham21b0f320783d
diff --git a/app/assets/stylesheets/common/nested-view.scss b/app/assets/stylesheets/common/nested-view.scss
index ed4dd33f526..77a6d246bc8 100644
--- a/app/assets/stylesheets/common/nested-view.scss
+++ b/app/assets/stylesheets/common/nested-view.scss
@@ -5,6 +5,10 @@
background: var(--secondary);
padding: var(--space-4);
border-radius: var(--d-border-radius-large);
+ max-width: calc(
+ var(--topic-body-width) + (var(--topic-body-width-padding) * 2) +
+ var(--topic-avatar-width)
+ );
&__header {
margin-bottom: 1em;