this repo has no description
0
fork

Configure Feed

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

Use data attr instead

The JSX className modification classes with this DOM-based modification

+2 -2
+1 -1
src/components/media.jsx
··· 374 374 Math.abs(naturalAspectRatio - displayAspectRatio) < 375 375 similarThreshold 376 376 ) { 377 - $media.classList.add('has-natural-aspect-ratio'); 377 + $media.dataset.hasNaturalAspectRatio = true; 378 378 } 379 379 // $media.dataset.aspectRatios = `${naturalAspectRatio} ${displayAspectRatio}`; 380 380 }
+1 -1
src/components/status.css
··· 1071 1071 width: min(var(--aspectWidth), var(--width), 100%); 1072 1072 max-height: min(var(--height), 33vh); 1073 1073 1074 - &.has-natural-aspect-ratio { 1074 + &[data-has-natural-aspect-ratio] { 1075 1075 --media-radius: 4px; 1076 1076 } 1077 1077 }