A platform for community discussion. Free, open, simple.
UX: update navigation-container scaling & wrapping (#15372)
Kris07436e9d8c87
diff --git a/app/assets/stylesheets/common/base/_topic-list.scss b/app/assets/stylesheets/common/base/_topic-list.scssindex e82d928251b..ed62a5c7020 100644--- a/app/assets/stylesheets/common/base/_topic-list.scss+++ b/app/assets/stylesheets/common/base/_topic-list.scss@@ -1,16 +1,6 @@// Topic list navigation & controls.list-controls {- .btn {- &:not(:first-child) {- margin-left: 0.5em;- }- }-- .notifications-button {- margin-left: 0.5em;- }-a.badge-category {padding: 3px 12px;font-size: $font-up-1;@@ -22,6 +12,7 @@border: 1px solid var(--primary-medium);font-size: $font-0;transition: none;+ height: 100%;&:focus {border-color: var(--tertiary);}@@ -41,14 +32,15 @@}.category-breadcrumb {- display: block;+ display: flex;+ flex-wrap: wrap;+ gap: var(--nav-space) 0; // used if the breadcrumb dropdowns wraplist-style: none;padding: 0;- margin: 0;+ margin: 0 0 var(--nav-space) 0;> li {// only target the top-level li, not dropdownsdisplay: flex;- float: left;margin-right: 0.5em;margin-bottom: 0;}@@ -64,10 +56,18 @@.navigation-controls {display: flex;+ flex-wrap: wrap;align-items: stretch;margin-bottom: var(--nav-space);+ gap: var(--nav-space) 0; // used if the buttons wrap> * {white-space: nowrap;+ &:not(:last-child) {+ margin-right: 0.5em;+ }+ }+ .select-kit-header {+ height: 100%;}@include breakpoint(mobile-large) {.edit-category {diff --git a/app/assets/stylesheets/desktop/topic-list.scss b/app/assets/stylesheets/desktop/topic-list.scssindex ad93fb44a91..8c27b6bbd5a 100644--- a/app/assets/stylesheets/desktop/topic-list.scss+++ b/app/assets/stylesheets/desktop/topic-list.scss@@ -183,13 +183,9 @@ button.dismiss-read {.category-breadcrumb {// only target the top-level li, not dropdowns- > li {- height: 100%;- }.select-kit {align-self: stretch;height: 100%;- margin-bottom: var(--nav-space);}}diff --git a/app/assets/stylesheets/mobile/topic-list.scss b/app/assets/stylesheets/mobile/topic-list.scssindex 080fc0803d7..12f2d8fa833 100644--- a/app/assets/stylesheets/mobile/topic-list.scss+++ b/app/assets/stylesheets/mobile/topic-list.scss@@ -88,19 +88,18 @@margin-left: 0;}-ol.category-breadcrumb {- margin: 0 -3px 5px -3px;- display: flex;- flex-wrap: wrap;- flex: 1 1 100%;- li.select-kit {+.category-breadcrumb {+ width: 100%;+ gap: 0.5em;+ li {flex: 1 1 33%;- margin: 0 3px 5px 3px;- .select-kit-header .selected-name {- max-width: 80vw;- .badge-wrapper {- max-width: 100%;- }+ margin: 0;+ details {+ width: 100%;+ }+ .name,+ .category-name {+ @include ellipsis;}}}