Skip to content

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

UX: allow horizontal scrolling for the editor toolbar on mobile (#33703)

chapoi46d189721398
diff --git a/app/assets/stylesheets/common/base/compose.scss b/app/assets/stylesheets/common/base/compose.scss
index eb5c7af9c32..1091a110960 100644
--- a/app/assets/stylesheets/common/base/compose.scss
+++ b/app/assets/stylesheets/common/base/compose.scss
@@ -744,8 +744,7 @@ html.composer-open:not(.has-full-page-chat) {
}
.submit-panel,
- .composer-fields,
- .d-editor-button-bar {
+ .composer-fields {
// this prevents touch events (i.e. accidental scrolls) from bubbling up
touch-action: none;
}
diff --git a/app/assets/stylesheets/common/d-editor.scss b/app/assets/stylesheets/common/d-editor.scss
index b243518b267..19d9d95a0c7 100644
--- a/app/assets/stylesheets/common/d-editor.scss
+++ b/app/assets/stylesheets/common/d-editor.scss
@@ -320,12 +320,21 @@
gap: var(--space-2);
margin: 0.25rem 0;
- .composer-toggle-switch {
- padding: 0 0.5rem;
+ @include viewport.until(sm) {
+ flex-wrap: nowrap;
+ padding-block: var(--space-1);
+ overflow-x: auto;
+ scrollbar-width: none;
+ -ms-overflow-style: none;
+ max-width: 100%;
+
+ &::-webkit-scrollbar {
+ display: none;
+ }
}
- @include viewport.until(sm) {
- font-size: var(--font-down-1-rem);
+ .composer-toggle-switch {
+ padding: 0 0.5rem;
}
.btn:focus-visible {