Skip to content

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

UX: fix selectkit overflow on dashboard (#42305)

chapoi223b2f222eb3
diff --git a/app/assets/stylesheets/admin/dashboard/engagement.scss b/app/assets/stylesheets/admin/dashboard/engagement.scss
index 4ef58bf73e5..5e00671091f 100644
--- a/app/assets/stylesheets/admin/dashboard/engagement.scss
+++ b/app/assets/stylesheets/admin/dashboard/engagement.scss
@@ -1,7 +1,26 @@
+@use "lib/container";
+
.db-activity {
display: flex;
flex-direction: column;
gap: var(--space-3);
+ container-type: inline-size;
+ container-name: db-activity;
+
+ .db-section__row-block-header {
+ align-items: center;
+ gap: var(--space-2);
+
+ @include container.until(sm, db-activity) {
+ flex-direction: column;
+ align-items: flex-start;
+
+ .select-kit.multi-select.multiple-categories-selector {
+ max-width: none;
+ width: 100%;
+ }
+ }
+ }
th,
td {
@@ -94,7 +113,10 @@
container-name: db-whos-posting;
.db-section__row-block-header {
- @container db-whos-posting (width < 22rem) {
+ align-items: center;
+ gap: var(--space-2);
+
+ @include container.until(sm, db-whos-posting) {
flex-direction: column;
align-items: flex-start;
}
@@ -108,11 +130,13 @@
flex-grow: 1;
min-width: 0;
- @container db-whos-posting (width < 22rem) {
+ @include container.until(sm, db-whos-posting) {
width: 100%;
+ align-items: flex-start;
.select-kit.multi-select.multiple-categories-selector {
max-width: none;
+ width: 100%;
}
}
}
@@ -265,11 +289,3 @@
}
}
}
-
-.db-whos-posting,
-.db-activity {
- .db-section__row-block-header {
- align-items: center;
- gap: var(--space-2);
- }
-}