Skip to content

Build your personal knowledge base with Trilium Notes

style(next): improve fit of calendar on mobile

Elian Doranc98df4d6c214
diff --git a/src/public/stylesheets/theme-next/shell.css b/src/public/stylesheets/theme-next/shell.css
index 5f8fc3b3d7..b5b3d77840 100644
--- a/src/public/stylesheets/theme-next/shell.css
+++ b/src/public/stylesheets/theme-next/shell.css
@@ -1158,10 +1158,26 @@ body.mobile .dropdown-menu .dropdown-item.submenu-open .dropdown-toggle::after {
}
.calendar-dropdown-widget .calendar-header .calendar-month-selector .select-button {
- --select-arrow-svg: ""; /* Disable the dropdown arrow */
+ --select-arrow-svg: ""; /* Disable the dropdown arrow */
+}
+
+@media (max-width: 992px) {
+ .calendar-dropdown-widget .calendar-header button {
+ margin: 0 !important;
+ padding: 0;
+ }
+
+ .calendar-dropdown-widget .calendar-header .calendar-month-selector .select-button {
+ padding: 0 8px;
+ flex-grow: 1;
+ }
+}
- min-width: 120px;
- padding: 0 10px;
+@media (min-width: 992px) {
+ .calendar-dropdown-widget .calendar-header .calendar-month-selector .select-button {
+ min-width: 120px;
+ padding: 0 10px;
+ }
}
.calendar-dropdown-widget .calendar-header .dropdown-toggle::after {