WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Font size increases when orientation switches to horizontal #3615

@randomguy-2650

Description

@randomguy-2650

What version of starlight are you using?

0.37.0 (Starlight site)

What version of astro are you using?

5.6.7 (Starlight site)

What package manager are you using?

pnpm (Starlight site)

What operating system are you using?

iOS (26.1)

What browser are you using?

Safari or any mobile WebKit browser on iOS (basically all)

Describe the Bug

This is a bug about iOS’ screen rotation or orientation lock feature. If you unlock it and turn your device horizontally, it will increase the font size of elements for no reason, but only random elements in the sidebar, like the sidebar items in the <details>. But if you rotate it to vertical again, it does revert the change. Only when the sidebar is open, that it does not revert it.

Video:

ScreenRecording_12-06-2025.07-30-52_1.mp4

Expected result: Font size shouldn’t change. But if it does, it should revert back in vertical orientation.
Actual result: Font size increases permanently in horizontal orientation and doesn’t revert until refresh.

Link to Minimal Reproducible Example

https://starlight.astro.build/getting-started/ as an example, any page will work

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions