Docs: NavBar preview is too short for its dropdown and mobile menu
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/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ệ
- next.js, react, tailwindcss, typescript
Hướng nghiên cứu
Bắt đầu với src/components/docs/preview-shell.tsx và trang tài liệu NavBar sử dụng PreviewComponents cùng với registryName="navbar" và fullBleed; kiểm tra cách kích thước vùng hiển thị và phần tràn của thẻ tương tác với nhau. So sánh menu thả xuống trên desktop với menu trên thiết bị di động ở khoảng 390px, sau đó kiểm tra các bản xem trước fullBleed khác để tìm lỗi hồi quy. Hoàn tất khi cả hai menu đều nằm gọn trong thẻ và không có phần tràn ngang ở 390px; chụp ảnh màn hình desktop và thiết bị di động ở chế độ sáng và tối.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The NavBar docs preview (<PreviewComponents registryName="navbar" fullBleed>) is only as tall as the bar itself. fullBleed renders the demo with no padding or minimum height (src/components/docs/preview-shell.tsx), so the language dropdown and the mobile menu have no room inside the card:
- On
main, the card clips withoverflow-hidden, so the open dropdown is cut off at the card edge. - With the clipping removed (as #44 does), the dropdown spills out of the card over the Installation section below.
Either way, the preview doesn't show the component's main interaction.
Expected
The NavBar preview stage reserves enough space for its popups: the open language menu with all demo locales, and the mobile menu at narrow widths. Both should fit inside the card.
Suggested fix
- Give the
fullBleedstage a minimum height, or letPreviewComponentsaccept aminHeight/classNamefor the stage, and set it on the NavBar page (roughlymin-h-[22rem]). - Leave the bar at the top of the stage; the empty area below is where the menus open.
- Check the other
fullBleedpreviews aren't affected.
Acceptance
- Open language dropdown fits fully inside the preview card on desktop.
- Mobile menu (~390px) fits inside the card.
- No horizontal page overflow at 390px.
- Screenshots: desktop and ~390px, light and dark.
- Ngôn ngữ chính
- TypeScript
- Star
- 39
- Fork
- 16
- Merge trung bình
- 2 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của babelize/babelize-elements
-
bug language-switcher priority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
babelize/babelize-elements#26 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
component enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
babelize/babelize-elements#47 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug component rtl-layout
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
babelize/babelize-elements#45 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Website: revamp and improve the landing pageCó thể đã có người làm @anjalinayak01 đã nhận 5 ngày trước. Đang mởenhancement help wanted priority: medium website
Độ khó 4/5 Hơn một tuần Mức phù hợp với người mới 30/100
babelize/babelize-elements#37 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Website: GitHub stars / forks / PRs counter in navbarCó thể đã có người làm @TanmayNileshShinde đã nhận hôm nay. Đang mởenhancement good first issue priority: low website
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
babelize/babelize-elements#36 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của babelize/babelize-elements
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
aws/agentcore-cli#2606 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug Cosmetic
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug claude Minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
linagora/twake-mail-admin#301 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
reproduced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
anomalyco/opencode#56038 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày