this repo has no description
0
fork

Configure Feed

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

Auto-open details and hide summary button

Only show toggle comments button if there are many statuses

+4 -2
+4 -2
src/pages/status.jsx
··· 175 175 return statuses.length - limit; 176 176 }, [statuses.length, limit]); 177 177 178 + const hasManyStatuses = statuses.length > 40; 179 + 178 180 return ( 179 181 <div class="deck-backdrop"> 180 182 <Link href={closeLink}></Link> ··· 229 231 </Link> 230 232 )} 231 233 {descendant && replies?.length > 0 && ( 232 - <details class="replies"> 233 - <summary> 234 + <details class="replies" open={!hasManyStatuses}> 235 + <summary hidden={!hasManyStatuses}> 234 236 {replies.length} repl{replies.length === 1 ? 'y' : 'ies'} 235 237 </summary> 236 238 <ul>