Ziehe die Struktur enger und merke die Paperless-Auswahl, damit Kapitel ohne Extraeintrag zuklappbar bleiben.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
deb5d662fe
commit
f21c64a944
5 files changed
+97
-34
No files matched your search
@@ -640,6 +640,20 @@ function ChapterHeading({
|
||||
}
|
||||
return (
|
||||
<>
|
||||
{real ? (
|
||||
<button
|
||||
type="button"
|
||||
className="chapter-fold"
|
||||
aria-expanded={expanded}
|
||||
aria-label={expanded ? `${section.title} einklappen` : `${section.title} ausklappen`}
|
||||
onClick={(event) => {
|
||||
event.stopPropagation();
|
||||
onToggle();
|
||||
}}
|
||||
>
|
||||
{expanded ? "▾" : "▸"}
|
||||
</button>
|
||||
) : null}
|
||||
<h3 className={`chapter-title${section.parentId ? " is-nested" : ""}`}>
|
||||
{real ? <NavIcon name="chapter" /> : null}
|
||||
<span>{section.title}</span>
|
||||
|
||||
Reference in new issue
Block a user