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') }} - - +