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

未关闭 适合新手
#2,995 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
html, react, typescript

调研方向

viewport 标签设置在 src/frontend/apps/impress/src/pages/_app.tsx 中第 49 行附近;测试使用的 jsdom head 位于 vitest.setup.ts。修改 content 属性以添加 interactive-widget=resizes-content,然后运行 presenter 打印测试,确认 BlockNote 警告已消失。完成的标准是警告不再出现,并且在移动端键盘打开时布局仍然正常。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
17k
派生
705
平均合并
4 天 13 小时
30 天内合并 PR
47

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

suitenumerique/docs 的其他 Issue

查看 suitenumerique/docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。