Skip to content

fix: improve mobile responsiveness for calendar grid#55

Open
andorcassian wants to merge 1 commit into
omnia-digital:devfrom
andorcassian:fix/mobile-responsive-view
Open

fix: improve mobile responsiveness for calendar grid#55
andorcassian wants to merge 1 commit into
omnia-digital:devfrom
andorcassian:fix/mobile-responsive-view

Conversation

@andorcassian
Copy link
Copy Markdown

Summary

Fixes #46 — Mobile View improvement.

The calendar grid previously used min-width: 10rem on each day cell, forcing a total minimum width of ~70rem and causing horizontal scrolling on mobile devices.

Changes

  • calendar.blade.php — Removed overflow-x-auto and inline-block min-w-full wrapper (no longer needed without fixed min-widths)
  • day-of-week.blade.php — Removed min-width: 10rem, abbreviated day names on mobile (Mon vs Monday)
  • day.blade.php — Removed min-width: 10rem, reduced cell height on mobile (h-24 vs h-48), reduced padding, compact event count on mobile
  • event.blade.php — Smaller padding/font on mobile, truncated titles, hidden descriptions on small screens

Approach

All changes use Tailwind responsive utilities (lg: prefix) so desktop layout is completely unchanged. Drag-and-drop functionality is preserved (no changes to Alpine.js directives or data attributes).

- Remove min-width: 10rem from day cells and day-of-week headers
- Abbreviate day names on mobile (Mon vs Monday)
- Reduce cell height on mobile (h-24 vs h-48)
- Reduce padding on mobile for day cells and events
- Hide event descriptions on mobile, truncate titles
- Show compact event count on mobile
- Remove overflow-x-auto wrapper (no longer needed)

Closes omnia-digital#46
@andorcassian
Copy link
Copy Markdown
Author

📱 Before/After Screenshots — Mobile Responsiveness Fix

Before (375px mobile viewport)

The old min-width: 10rem on day cells forces horizontal scrolling. Only 2-3 columns visible, content overflows viewport.

Before - Mobile 375px


After (375px mobile viewport)

All 7 days fit within the viewport. Day names abbreviated (Sun/Mon/etc), event text truncated, compact padding. No horizontal scroll needed.

After - Mobile 375px


After (1280px desktop viewport)

Desktop view retains full day names, event descriptions, and spacious layout — no regression.

After - Desktop 1280px


Summary of Changes

File Change
calendar.blade.php Removed overflow-x-auto, inline-block, min-w-full → simple w-full
day-of-week.blade.php Removed min-width: 10rem, added responsive day name abbreviations (lg:inline / lg:hidden)
day.blade.php Removed min-width: 10rem, reduced mobile cell height (h-24 lg:h-48), compact padding (p-1 lg:p-2), abbreviated event count on mobile
event.blade.php Compact padding on mobile (py-1 px-1.5 lg:py-2 lg:px-3), truncated titles, hidden descriptions on mobile

Screenshots generated from HTML mockups faithfully reproducing the actual Blade template markup before and after this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Mobile View improvement

2 participants