Skip to content

[UI] improve monitor for devices under 1200px#24

Merged
ClarkLiam merged 2 commits intomainfrom
web
Jan 22, 2026
Merged

[UI] improve monitor for devices under 1200px#24
ClarkLiam merged 2 commits intomainfrom
web

Conversation

@ClarkLiam
Copy link
Owner

This pull request introduces a responsive design improvement to the monitor display by adding a media query for screens with a maximum width of 1200px. The styles within this media query adjust the sizing of various elements to ensure better usability and readability on smaller screens.

Responsive design adjustments for smaller screens:

  • Added a @media (max-width: 1200px) block to monitor.css to:
    • Set .view height to 100vh
    • Scale down the logo image size
    • Reduce font sizes for #clock, #date, .einsatzinfo h1, .einsatzinfo h3, .weather-data h1, .weather-data h3, and .personal-box a

Introduced a media query for max-width 1200px to adjust layout and font sizes for various elements, improving display on smaller screens.
Changed .view height to 100vh instead of auto and removed overflow: visible in the media query for screens with max-width 1200px to improve layout consistency.
Copilot AI review requested due to automatic review settings January 22, 2026 14:10
@ClarkLiam ClarkLiam merged commit 8d9f78f into main Jan 22, 2026
7 of 9 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a responsive breakpoint for screens up to 1200px wide to improve monitor layout readability and sizing on smaller devices.

Changes:

  • Added a @media (max-width: 1200px) block to adjust layout height and scale typography.
  • Reduced logo size within the breakpoint for better fit on narrower screens.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +309 to +311
.view {
height: 100vh;
}
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

height: 100vh can behave unexpectedly on mobile browsers due to dynamic browser UI (address bar), causing content to be clipped or overflow. Consider using a dynamic viewport unit with a fallback (e.g., min-height: 100vh plus min-height: 100dvh, or height: 100dvh with a fallback) so the layout matches the visible viewport more reliably.

Copilot uses AI. Check for mistakes.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

height: 100vh;
}
#logo img {
width: 90%;
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using width: 90% may upscale the image beyond its intrinsic size, potentially causing blurriness. If the intent is “scale down when needed,” prefer max-width: 90% (and keep height: auto) to avoid forced upscaling.

Suggested change
width: 90%;
max-width: 90%;

Copilot uses AI. Check for mistakes.
Comment on lines +316 to +336
#clock {
font-size: 3.5em;
}
#date {
font-size: 1.25em;
}
.einsatzinfo h1 {
font-size: 1.2rem;
}
.einsatzinfo h3 {
font-size: 1rem;
}
.weather-data h1 {
font-size: 3rem;
}
.weather-data h3 {
font-size: 1.2rem;
}
.personal-box a {
font-size: 1.75em;
}
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breakpoint mixes em and rem for font sizing, which can make scaling harder to reason about (since em compounds with parent font sizes while rem does not). Consider standardizing on a single unit (commonly rem) or using clamp() for more predictable responsive typography.

Copilot uses AI. Check for mistakes.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

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.

1 participant