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

Đang mở Phù hợp với người mới
#2,995 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
html, react, typescript

Hướng nghiên cứu

Thẻ viewport được đặt trong src/frontend/apps/impress/src/pages/_app.tsx, khoảng dòng 49; phần head jsdom mà các bài kiểm thử dùng nằm trong vitest.setup.ts. Thay đổi thuộc tính content để thêm interactive-widget=resizes-content, sau đó chạy các bài kiểm thử in của presenter để xác nhận cảnh báo của BlockNote đã biến mất. Hoàn thành khi cảnh báo không còn xuất hiện và bố cục vẫn hoạt động khi bàn phím di động đang mở.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
17k
Fork
705
Merge trung bình
4 ngày 13 giờ
Pull request đã merge (30 ngày)
47

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của suitenumerique/docs

Tất cả issue của suitenumerique/docs

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.