css: Always show scroll bar to prevent shifted content #19

Merged
jkimmel merged 1 commits from fbl/docs:scrollbar into master 2023-03-01 21:47:49 +01:00
Owner

Some pages require a scroll bar, some do not. If the scroll bar is
hidden on pages that do not require it (default behavior of most
browsers), centered content is shifted to the right slightly.

Fix this behavior by always showing the scroll bar.

Some pages require a scroll bar, some do not. If the scroll bar is hidden on pages that do not require it (default behavior of most browsers), centered content is shifted to the right slightly. Fix this behavior by always showing the scroll bar.
Owner

Hm. Hast du Screenshots oder ne Anleitung, wo das einen Unterschied macht?

Hm. Hast du Screenshots oder ne Anleitung, wo das einen Unterschied macht?
Author
Owner
Ohne Patch Mit Patch
vorher nachher
| Ohne Patch | Mit Patch | | -------- | -------- | | ![vorher](https://git.freifunk-franken.de/attachments/ccdfae2e-4d42-4a33-94a6-83ad74e7072d) | ![nachher](https://git.freifunk-franken.de/attachments/907cf86e-2a52-43ae-97be-ae2a218a2651) |
Owner

Ich glaube, die eigentliche Lösung ist für die meisten Browser das hier: https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter
Safari braucht halt dann Extrawurst. Da kann man deinen aktuellen Vorschlag nutzen.

Ich glaube, die eigentliche Lösung ist für die meisten Browser das hier: https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter Safari braucht halt dann Extrawurst. Da kann man deinen aktuellen Vorschlag nutzen.
fbl force-pushed scrollbar from f30a0e3bd2 to 7873366ba6 2023-03-01 21:43:53 +01:00 Compare
Author
Owner

Changes:

  • Use scrollbar-gutter property
Changes: - Use scrollbar-gutter property
jkimmel merged commit 1d3f71bcc4 into master 2023-03-01 21:47:49 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: freifunk-franken/docs#19
No description provided.