A platform for community discussion. Free, open, simple.
FIX: remove embed mode horizontal overflow and z-index issue (#39499)
Steven Chang71585c9ec9fa
diff --git a/app/assets/stylesheets/common/base/embed-mode.scss b/app/assets/stylesheets/common/base/embed-mode.scssindex 7c2d7f5d1fc..39585b2309e 100644--- a/app/assets/stylesheets/common/base/embed-mode.scss+++ b/app/assets/stylesheets/common/base/embed-mode.scss@@ -1,3 +1,5 @@+@use "lib/viewport";+// Styles for the full Ember app when rendered in embed mode (iframe)// Activated when ?embed_mode=true is in the URLbody.embed-mode {@@ -103,6 +105,25 @@ body.embed-mode {}}+ // prevent horizontal overflow+ .topic-meta-data {+ @include viewport.until(sm) {+ .post-infos {+ position: relative;+ overflow: hidden;+ padding-right: 6px;+ }++ .read-state {+ right: 1px;++ svg {+ right: 0;+ }+ }+ }+ }+// Hide the docked timeline sidebar (fullscreen timeline still works).timeline-container:not(.timeline-fullscreen) {display: none !important;@@ -154,7 +175,7 @@ body.embed-mode {.embed-mode-composer {position: sticky;bottom: 0;- z-index: 50;+ z-index: z("composer", "content");background: var(--secondary);padding-inline: 0.5em;