Live video on the AT Protocol
79
fork

Configure Feed

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

avoid weird layouts

Natalie B d0fd8776 0dc16866

+7 -7
+3 -3
js/app/components/ui/cards.tsx
··· 68 68 $gtXxl={{ 69 69 minWidth: layoutHorizontal ? "62.5%" : "100%", 70 70 }} 71 - maxHeight="76%" 72 - aspectRatio={16 / 9} 71 + maxHeight="76.5%" 73 72 borderRadius={borderRadius} 74 73 overflow="hidden" 75 74 position="relative" 76 75 alignSelf={layoutHorizontal ? "auto" : "center"} 76 + backgroundColor={"green"} 77 77 > 78 78 <Image 79 79 source={{ uri: thumbnailUrl, width: 160, height: 90 }} 80 80 style={{ width: "100%", height: "100%", aspectRatio: 16 / 9 }} 81 - resizeMode="cover" 81 + resizeMode="stretch" 82 82 /> 83 83 {isLive && ( 84 84 <XStack
+1 -1
js/app/components/ui/container.tsx
··· 6 6 sm: 440, 7 7 md: 660, 8 8 lg: 740, 9 - xl: 860, 9 + xl: 800, 10 10 twoXl: 1260, 11 11 threeXl: 1660, 12 12 };
+3 -3
js/app/src/screens/home.tsx
··· 68 68 function getHomeScreenCols(media: UseMediaState): number { 69 69 if (media.gtXxl) { 70 70 return 4; 71 - } else if (media.gtLg) { 71 + } else if (media.gtXl) { 72 72 return 3; 73 73 } else if (media.gtMd) { 74 74 return 2; ··· 158 158 } = useAppSelector(selectRecentSegments); 159 159 const dispatch = useAppDispatch(); 160 160 const [manualRefresh, setManualRefresh] = useState(false); 161 - const [useMockData, setUseMockData] = useState(false); 161 + const [useMockData, setUseMockData] = useState(true); 162 162 163 163 const segments = useMockData ? fakeSegs : realSegments; 164 164 const media = useMedia(); ··· 270 270 f={1} 271 271 justifyContent="center" 272 272 alignItems="center" 273 - minHeight="90vh" 273 + minHeight="90%" 274 274 paddingVertical={42} 275 275 > 276 276 <Image