Add a collapse/expand-all toggle to the pedigree
A header button folds the whole tree down to just the dog or opens every branch at once, alongside the per-dog toggles. Grouped with the zoom controls, which the header now wraps on narrow screens.
This commit is contained in:
+7
-4
@@ -280,10 +280,13 @@
|
||||
<header class="pedigree-header">
|
||||
<button type="button" id="pedigree-back" class="ghost icon-btn" aria-label="Back to tracker" title="Back">←</button>
|
||||
<h1>🌳 Pedigree</h1>
|
||||
<div class="ped-zoom" role="group" aria-label="Zoom">
|
||||
<button type="button" id="ped-zoom-out" class="ghost icon-btn" aria-label="Zoom out" title="Zoom out">−</button>
|
||||
<button type="button" id="ped-zoom-reset" class="ghost" aria-label="Reset zoom" title="Reset zoom">100%</button>
|
||||
<button type="button" id="ped-zoom-in" class="ghost icon-btn" aria-label="Zoom in" title="Zoom in">+</button>
|
||||
<div class="ped-controls">
|
||||
<button type="button" id="ped-foldall" class="ghost">Collapse all</button>
|
||||
<div class="ped-zoom" role="group" aria-label="Zoom">
|
||||
<button type="button" id="ped-zoom-out" class="ghost icon-btn" aria-label="Zoom out" title="Zoom out">−</button>
|
||||
<button type="button" id="ped-zoom-reset" class="ghost" aria-label="Reset zoom" title="Reset zoom">100%</button>
|
||||
<button type="button" id="ped-zoom-in" class="ghost icon-btn" aria-label="Zoom in" title="Zoom in">+</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="pedigree-main">
|
||||
|
||||
Reference in New Issue
Block a user