Skip to content

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

UX: fix horizon new topic button on small screens (#37734)

Kris0c202f2e0114
diff --git a/themes/horizon/scss/buttons.scss b/themes/horizon/scss/buttons.scss
index f57ad58cd68..325f19ac336 100644
--- a/themes/horizon/scss/buttons.scss
+++ b/themes/horizon/scss/buttons.scss
@@ -1,3 +1,5 @@
+@use "lib/viewport";
+
:root {
--d-button-border-radius: 6.25rem;
}
@@ -15,6 +17,12 @@
}
}
+@include viewport.until(md) {
+ #create-topic.btn {
+ border-radius: var(--d-button-border-radius);
+ }
+}
+
.discourse-no-touch .btn-default.sidebar-new-topic-button,
.discourse-no-touch .btn-default,
.discourse-no-touch .select-kit .select-kit-header.btn-default {