Support Initially Expanded Accordions (`<details open>`)
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 50/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- html, javascript, markdown
- Lĩnh vực
- frontend
Hướng nghiên cứu
The payload names no files, so search the codebase for where details and summary are handled in the Markdown rendering path, and check whether the HTML sanitizer strips the open attribute. The open or closed state must also survive reopening the note, which may involve the note-saving path. Done when <details open> renders expanded, plain <details> stays collapsed, and users can still toggle both.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Nextcloud Notes already supports collapsible sections (accordions) using the HTML <details> and <summary> elements.
However, these sections are always displayed in a collapsed state by default.
In HTML, the open attribute allows a <details> element to be expanded immediately when the page is loaded.
For example:
<details open>
<summary>Title</summary>
Content that is visible by default.
</details>
Currently, there appears to be no way to achieve this behavior in Nextcloud Notes.
Suggested Improvement
Please support the open attribute for <details> elements, allowing accordion sections to be expanded by default.
The expected behavior would be:
<details>— collapsed by default.<details open>— expanded by default.- Users can still manually expand or collapse either type.
- The initial expanded or collapsed state is preserved when reopening the note.
Expected Benefit
This would provide greater flexibility when organizing longer notes with collapsible sections.
Some sections are intended to remain visible by default, while others should only be expanded when needed. Supporting both behaviors would make accordions considerably more useful and bring Nextcloud Notes closer to standard HTML functionality.
- Ngôn ngữ chính
- JavaScript
- Star
- 739
- Fork
- 162
- Merge trung bình
- 19 giờ 23 phút
- Pull request đã merge (30 ngày)
- 49
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 nextcloud/notes
-
bug need to reproduce
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need to reproduce
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
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 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need to reproduce
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request needs discussion
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
nextcloud/notes#1344 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/notes
Issue tương tự
-
release-followup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Workspace secrets/constants containing "$" are corrupted when resolved in data source optionsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: right sidebar
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
zulip/zulip#40449 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
uclaacm/membership-portal-ui#409 ·
Maintainer thường phản hồi trong vòng 1 ngày