Skip to content

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

UX: Fix mobile alignment for category events header (#39587)

Penar Musaraj601f044d7945
diff --git a/plugins/discourse-calendar/assets/stylesheets/common/full-calendar-ext.scss b/plugins/discourse-calendar/assets/stylesheets/common/full-calendar-ext.scss
index d5941da6ee8..764163d8b0e 100644
--- a/plugins/discourse-calendar/assets/stylesheets/common/full-calendar-ext.scss
+++ b/plugins/discourse-calendar/assets/stylesheets/common/full-calendar-ext.scss
@@ -56,7 +56,11 @@
.fc-header-toolbar {
.fc-button,
.fc-toolbar-title {
- font-size: var(--font-down-1) !important;
+ font-size: var(--font-0);
+
+ @include viewport.from(md) {
+ font-size: var(--font-down-1);
+ }
}
}
@@ -89,15 +93,12 @@
@include viewport.until(md) {
.fc-header-toolbar {
display: flex;
- flex-direction: column;
gap: 0.5rem;
+ flex-wrap: wrap;
}
.fc-toolbar-chunk {
- width: 100%;
display: flex;
- align-items: center;
- justify-content: space-between;
}
.post-calendar {
diff --git a/themes/horizon/scss/topic.scss b/themes/horizon/scss/topic.scss
index 669b474bf6c..d6a6ec4c0b7 100644
--- a/themes/horizon/scss/topic.scss
+++ b/themes/horizon/scss/topic.scss
@@ -133,3 +133,9 @@ nav.post-controls .actions button {
}
}
}
+
+@include viewport.until(md) {
+ #category-events-calendar {
+ padding: var(--space-4);
+ }
+}