From 07c2e7cbf35299dbf328b5c8ebe6eb9189b7ceb4 Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Fri, 17 Jul 2026 21:16:43 -0300 Subject: [PATCH] fix(posts): tidy the mobile calendar header - Show/hide the date picker and view switcher with Tailwind (lg:hidden / hidden lg:block) instead of the isMobile ref; isMobile now only drives effectiveView (which changes navigation behavior, not just visibility) - Full-width buttons on mobile: prev / Today (fills) / next, and the date picker fills the row next to New post --- resources/js/pages/posts/Calendar.vue | 33 ++++++++++++++------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/resources/js/pages/posts/Calendar.vue b/resources/js/pages/posts/Calendar.vue index 6f717943..4a51b114 100644 --- a/resources/js/pages/posts/Calendar.vue +++ b/resources/js/pages/posts/Calendar.vue @@ -52,9 +52,8 @@ interface Props { const props = defineProps(); -// Mobile detection — seed from the viewport at setup (available on client render -// and SPA navigations) so a narrow screen never paints the month grid for a frame. -const isMobile = ref(typeof window !== 'undefined' ? window.innerWidth < 1024 : false); +// Mobile detection +const isMobile = ref(false); const { canCreatePost } = useWorkspaceRole(); const createPostUrl = (isoDate: string | null = null) => @@ -255,14 +254,14 @@ const formatTime = (scheduledAt: string): string => {
-
- - -
@@ -271,17 +270,19 @@ const formatTime = (scheduledAt: string): string => { {{ headerTitle }}
-
-
+
+
- - - {{ $t('calendar.day') }} - {{ $t('calendar.week') }} - {{ $t('calendar.month') }} - - +