🐛(Bug) Viewport meta tag lacks interactive-widget=resizes-content for BlockNote

Open Beginner friendly
#2,995 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
html, react, typescript

Research direction

The viewport tag is set in src/frontend/apps/impress/src/pages/_app.tsx, around line 49; the jsdom head used by the tests is in vitest.setup.ts. Change the content attribute to add interactive-widget=resizes-content, then run the presenter print tests to confirm the BlockNote warning is gone. Done means the warning no longer appears and the layout still works with the mobile keyboard open.

Written by the indexing model from the issue text.

Description

AI generated frontend mobile

BlockNote warns on every editor mount that the viewport meta tag lacks interactive-widget=resizes-content; ours only sets the width and scale.
https://github.com/suitenumerique/docs/blob/8918bd2d3ff63798aded3a22a893a9cc1896517c/src/frontend/apps/impress/src/pages/_app.tsx#L49
Without it, the mobile virtual keyboard can cover the editor instead of resizing the page (see BlockNote's mobile compatibility docs). The warning also shows in the browser console and in the Vitest output of the presenter print tests.
Suggested fix: set content="width=device-width, initial-scale=1, interactive-widget=resizes-content", check the layout on a phone with the keyboard open, and add the same tag to the jsdom head in vitest.setup.ts for the tests.

Dominant language
TypeScript
Stars
17k
Forks
705
Avg merge
4d 13h
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from suitenumerique/docs

All issues in suitenumerique/docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.