Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with code block in dev mode and ios #10968

Open
6 of 7 tasks
trofim24 opened this issue Mar 6, 2025 · 4 comments
Open
6 of 7 tasks

Problem with code block in dev mode and ios #10968

trofim24 opened this issue Mar 6, 2025 · 4 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers

Comments

@trofim24
Copy link

trofim24 commented Mar 6, 2025

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Problem on ios mobile phone Safari/Chrome browser with size of code block after build with --dev option

Reproducible demo

https://trofim24.github.io/

Steps to reproduce

  1. Create a new Docusaurus site with npx create-docusaurus@latest my-website classic -t command from instruction
  2. Go to created folder cd my-website
  3. Run build with --dev option use npm run build -- --dev command from instruction
  4. Open site on mobile phone and check block of code for example /docs/tutorial-basics/markdown-features/#mdx-and-react-components

Expected behavior

Font size of code is normal

Image

Actual behavior

Forn size of code is big

Image

Your environment

Self-service

  • I'd be willing to fix this bug myself.
@trofim24 trofim24 added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Mar 6, 2025
@slorber
Copy link
Collaborator

slorber commented Mar 7, 2025

Can you please explain if this is related to --dev and iOS?

Do you see the same behavior without --dev?

Do you see the same behavior if you use another iOS device or Android?

How did you obtain the 2 screenshots exactly? What differentiates them?

What is your iOS device, browser/safari version etc?

@trofim24
Copy link
Author

trofim24 commented Mar 8, 2025

Without --dev option problem doesn't repeat.
Problem doesn't repeat on Android and on browser emulate device mode.
Problem repeats on iPhone 15 Pro Max and iPhone 14 with Browser Safari appVersion: "5.0 (iPhone; CPU iPhone OS 17_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1"

First screenshot is on version without --dev option. Second is on version with --dev option

@slorber
Copy link
Collaborator

slorber commented Mar 8, 2025

I don't have an ios physical device, does the problem repeat in ios simulators? It looks like you took screenshots of simulators.

@trofim24
Copy link
Author

Yes, I check it on browserstack for example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants