Packaged .css disables horizontal scroll on mobile browsers #653

Open
opened 2026-01-29 17:41:01 +00:00 by claunia · 0 comments
Owner

Originally created by @InvisiblePhil on GitHub (Nov 29, 2022).

The following code is in the file radzen-blazor/Radzen.Blazor/themes/components/blazor/_common.scss:

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .header,
  .footer,
  .body {
    width: 100vw;
  }
}

This gets added to all generated .css styles, and completely disables all horizontal scrolling on mobile browsers in portrait mode.

Is there a good reason for its presence? It seems out of place in a component library imo.

Originally created by @InvisiblePhil on GitHub (Nov 29, 2022). The following code is in the file `radzen-blazor/Radzen.Blazor/themes/components/blazor/_common.scss`: ``` @media (max-width: 768px) { body { overflow-x: hidden; } .header, .footer, .body { width: 100vw; } } ``` This gets added to all generated .css styles, and completely disables all horizontal scrolling on mobile browsers in portrait mode. Is there a good reason for its presence? It seems out of place in a component library imo.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#653