atmosphere explorer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix estimate size

Juliet 93e875c9 5dbf570e

+6 -6
+6 -6
src/views/pds.tsx
··· 147 147 get count() { 148 148 return repos()?.length ?? 0; 149 149 }, 150 - estimateSize: () => 32, 150 + estimateSize: () => 33, 151 151 overscan: 10, 152 152 get scrollMargin() { 153 153 return containerRef?.offsetTop ?? 0; ··· 211 211 <RepoCard 212 212 repo={repos()![virtualItem.index]} 213 213 expanded={expandedIndex() === virtualItem.index} 214 - onToggle={() => 215 - setExpandedIndex( 216 - expandedIndex() === virtualItem.index ? null : virtualItem.index, 217 - ) 218 - } 214 + onToggle={() => { 215 + const isClosing = expandedIndex() === virtualItem.index; 216 + setExpandedIndex(isClosing ? null : virtualItem.index); 217 + if (isClosing) requestAnimationFrame(() => virtualizer.measure()); 218 + }} 219 219 /> 220 220 </div> 221 221 )}