Skip to content

Fix calendar layout overflow from KW column addition#14

Merged
D4koon merged 2 commits intomainfrom
copilot/fix-layout-overflow-issue
Jan 8, 2026
Merged

Fix calendar layout overflow from KW column addition#14
D4koon merged 2 commits intomainfrom
copilot/fix-layout-overflow-issue

Conversation

Copy link
Contributor

Copilot AI commented Jan 8, 2026

The KW (calendar week) column added an 8th column to the calendar grid, but the minimum width constraint remained at 250px (sized for 7 columns), causing cramped cells and overflow on smaller viewports.

Changes

  • css/style.css: Increased .calendar grid minimum width from 250px to 300px to accommodate the additional 40px KW column
 .calendar {
   display: grid;
-  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 10px;
   margin-bottom: 20px;
 }

Screenshots

Before (768px viewport):
Before fix

After (768px viewport):
After fix

Layout now properly adapts across all viewport sizes (375px mobile through 1920px desktop) while maintaining responsive grid behavior.

Original prompt

The addition of the kw display breaks the layout, the days are now overflowing to the right side


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: D4koon <13141819+D4koon@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix layout overflow issue caused by kw display Fix calendar layout overflow from KW column addition Jan 8, 2026
Copilot AI requested a review from D4koon January 8, 2026 00:11
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

🎉 Preview Deployed!

Your PR preview is ready for review:

🔗 Preview URL: https://D4koon.github.io/Holiday-Planner/pr-14/

The preview will automatically update with new commits.

@D4koon D4koon marked this pull request as ready for review January 8, 2026 00:12
@D4koon D4koon merged commit 7b67a37 into main Jan 8, 2026
2 checks passed
github-actions bot added a commit that referenced this pull request Jan 8, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

🧹 Preview Cleaned Up

The preview for this PR has been removed since the PR was closed.

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.

2 participants