Read the section index only when the groups change, and keep its label on screen

Live counts repaint the rows many times a second; the index now reads its
headings at most once a frame, and only when a heading changes. The label
goes before the tick when there is no room after it, as in a right-to-left
language, and the ticks sit at the panel's inline end.

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju committed 2026-11-14 16:25:32 -08:00
1 parent 919ea8d4c0
commit f940484498
2 files changed
+44 -5

No files matched your search

+6 -1
View File
@@ -6,7 +6,7 @@
.layer-section-index {
position: absolute;
top: 64px;
right: 2px;
inset-inline-end: 2px;
bottom: 24px;
z-index: 2;
display: flex;
@@ -80,6 +80,11 @@
animation: layer-section-index-label 120ms ease both;
}
/* Drawn before the tick when there is no room after it. */
.layer-section-index__label--before {
transform: translate(-100%, -50%);
}
@keyframes layer-section-index-label {
from {
opacity: 0;