mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-01 00:19:45 +02:00
small channels layout fix
This commit is contained in:
parent
e09a9a4dbe
commit
d3c307c1af
@ -1,6 +1,6 @@
|
||||
import { useCallback } from "react";
|
||||
import { kinds } from "nostr-tools";
|
||||
import { Flex } from "@chakra-ui/react";
|
||||
import { Flex, SimpleGrid } from "@chakra-ui/react";
|
||||
|
||||
import useTimelineLoader from "../../hooks/use-timeline-loader";
|
||||
import useSubject from "../../hooks/use-subject";
|
||||
@ -43,11 +43,13 @@ function ChannelsHomePage() {
|
||||
<PeopleListSelection />
|
||||
</Flex>
|
||||
<IntersectionObserverProvider callback={callback}>
|
||||
{channels.map((channel) => (
|
||||
<ErrorBoundary key={channel.id}>
|
||||
<ChannelCard channel={channel} additionalRelays={relays} />
|
||||
</ErrorBoundary>
|
||||
))}
|
||||
<SimpleGrid columns={{ base: 1, xl: 2 }} spacing="2">
|
||||
{channels.map((channel) => (
|
||||
<ErrorBoundary key={channel.id}>
|
||||
<ChannelCard channel={channel} additionalRelays={relays} />
|
||||
</ErrorBoundary>
|
||||
))}
|
||||
</SimpleGrid>
|
||||
</IntersectionObserverProvider>
|
||||
</VerticalPageLayout>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user