Skip to content

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

UX: don't decrease composer monospace font on mobile (#32358)

Krisbdca36928817
diff --git a/app/assets/stylesheets/common/d-editor.scss b/app/assets/stylesheets/common/d-editor.scss
index 47171a66818..51a1db18b33 100644
--- a/app/assets/stylesheets/common/d-editor.scss
+++ b/app/assets/stylesheets/common/d-editor.scss
@@ -1,3 +1,5 @@
+@use "lib/viewport";
+
.d-editor-container {
display: flex;
flex-grow: 1;
@@ -5,8 +7,11 @@
&--rich-editor-enabled .d-editor-textarea-wrapper textarea.d-editor-input {
font-family: var(--d-font-family--monospace);
- font-size: var(--font-down-1);
font-variant-ligatures: none;
+
+ @include viewport.from(sm) {
+ font-size: var(--font-down-1);
+ }
}
}