[Site] Active section detection should respect scroll-margin-top
Maintainer thường phản hồi trong vòng 1 ngày
@AdityaSrivastava185 đang làm issue này rồi.
Từ ngày 21/11/2026.
- #65387 của @AdityaSrivastava185 — đang mở
Đá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
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- css, typescript
- Lĩnh vực
- documentation, frontend
Hướng nghiên cứu
Bắt đầu bằng việc xác định component render danh sách "Contents" bên phải và theo dõi heading đang active trên site docs; payload không nêu tên file nào, nên hãy đi theo đường render mục lục từ trang Intro của docs. Tái hiện bằng cách nhấp vào "Desktop", "Web" và "Docker" trên một trang có các section ngắn, sau đó kiểm tra cách heading active được chọn so với viewport và so sánh với scroll-margin-top của từng heading. Hoàn tất nghĩa là section được nhấp sẽ được highlight và các section ngắn không còn khiến mục tiếp theo trở thành active.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
Issue
On the docs Intro page, clicking an item in the right-hand "Contents" list
scrolls to that section, but the next item gets highlighted instead.
Example: clicking "Desktop" highlights "Web". Clicking "Web" highlights
"Docker". It happens where sections are short.
Currently, the active section is determined using the heading's position relative to the viewport. This can cause the sidebar to highlight a section at the wrong time, especially when headings have an offset for sticky headers.
Expected Behaviour
Active section detection should respect each heading's scroll-margin-top value so that the correct section is highlighted when the heading reaches its intended scroll position
Plugins
No response
OpenCode version
No response
Steps to reproduce
- Open any documentation page on the OpenCode website.
- Navigate through sections using the table of contents/sidebar.
- Click "Desktop" in the Contents list. .
- Observe that the active section in the sidebar may not update at the expected scroll position.
Screenshot
Operating System
macOS 26.5
Terminal
No response
- Ngôn ngữ chính
- TypeScript
- Star
- 227k
- Fork
- 30.7k
- Merge trung bình
- 3 giờ 57 phút
- Pull request đã merge (30 ngày)
- 484
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 anomalyco/opencode
-
area/cli type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#65379 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Shell tool: no upper bound on the timeout a model can ask for, so one call can hold a turn for hoursĐang mởarea/core platform/linux type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anomalyco/opencode#65254 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
inference/go type/feature
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
anomalyco/opencode#65148 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/providers type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#64845 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/providers platform/macos status/repro-simulated type/bug version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anomalyco/opencode#64723 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của anomalyco/opencode
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
swc-project/swc-ai-issues#1001 ·
-
Add: Da Vinci Asia VietnamĐang mởcheck:passed streams:add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(table): CollapseColumn uses wrong caret icon for expandable row toggleCó thể đã có người làm @redhat-chai-bot đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
patternfly/patternfly-react#12727 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CLI OAuth login fails behind an authenticating proxy: GET /api/v1/user omits Proxy-AuthorizationĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
lightdash/lightdash#33086 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
assessment bug course exercise programming
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày