🐛(Bug) Viewport meta tag lacks interactive-widget=resizes-content for BlockNote
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- html, react, typescript
- 领域
- frontend, mobile-dev, testing-qa
调研方向
viewport 标签设置在 src/frontend/apps/impress/src/pages/_app.tsx 中第 49 行附近;测试使用的 jsdom head 位于 vitest.setup.ts。修改 content 属性以添加 interactive-widget=resizes-content,然后运行 presenter 打印测试,确认 BlockNote 警告已消失。完成的标准是警告不再出现,并且在移动端键盘打开时布局仍然正常。
由索引模型根据 Issue 内容生成。
描述
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
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
suitenumerique/docs 的其他 Issue
-
🐛(Bug) Helm chart is published from a push to any branch, not only main可能已有人在做 @RoeeSivan 于 2 天前认领。 未关闭AI generated CI helm
难度 1/5 1 小时以内 新手友好度 78/100
suitenumerique/docs#3049 ·
维护者通常 3 天内回复
-
🐛(Bug) Preview comment missing when a PR is opened or labelled with a conflict可能已有人在做 @RoeeSivan 于 2 天前认领。 未关闭CI preview
难度 1/5 1 小时以内 新手友好度 90/100
suitenumerique/docs#3039 ·
维护者通常 3 天内回复
-
AI generated frontend
难度 2/5 1-3 小时 新手友好度 72/100
suitenumerique/docs#3030 · 1 条评论 ·
维护者通常 3 天内回复
-
🐛(Bug) Block menu shows an orphan separator on blocks without colors (math, diagram)可能已有人在做 @arxh80 于 8 天前认领。 未关闭frontend good first issue
难度 2/5 1-3 小时 新手友好度 78/100
suitenumerique/docs#3021 · 1 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
-
frontend
难度 2/5 1-3 小时 新手友好度 78/100
suitenumerique/docs#3018 · 1 条评论 ·
维护者通常 3 天内回复
查看 suitenumerique/docs 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
TriliumNext/Trilium#12837 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
LibreChat-AI/LibreChat#18944 ·
维护者通常 1 天内回复
-
bug root-cause:found
难度 2/5 1-3 小时 新手友好度 70/100
openchamber/openchamber#7620 · 1 条评论 ·
维护者通常 2 天内回复
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 82/100
Anatomik5/codetovideo#8 ·
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复