|
|
|
|
@ -30,7 +30,7 @@ export default function Explore() {
@@ -30,7 +30,7 @@ export default function Explore() {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className="space-y-6"> |
|
|
|
|
<div className="min-w-0 w-full overflow-x-hidden space-y-6"> |
|
|
|
|
{collections.map((collection) => ( |
|
|
|
|
<RelayCollection key={collection.id} collection={collection} /> |
|
|
|
|
))} |
|
|
|
|
@ -41,16 +41,16 @@ export default function Explore() {
@@ -41,16 +41,16 @@ export default function Explore() {
|
|
|
|
|
function RelayCollection({ collection }: { collection: TAwesomeRelayCollection }) { |
|
|
|
|
const { deepBrowsing } = useDeepBrowsing() |
|
|
|
|
return ( |
|
|
|
|
<div> |
|
|
|
|
<div className="min-w-0"> |
|
|
|
|
<div |
|
|
|
|
className={cn( |
|
|
|
|
'sticky bg-background z-20 px-4 py-3 text-2xl font-semibold max-md:border-b', |
|
|
|
|
'sticky bg-background z-20 px-4 py-3 text-2xl font-semibold max-md:border-b min-w-0 break-words', |
|
|
|
|
deepBrowsing ? 'top-12' : 'top-24' |
|
|
|
|
)} |
|
|
|
|
> |
|
|
|
|
{collection.name} |
|
|
|
|
</div> |
|
|
|
|
<div className="grid md:px-4 md:grid-cols-2 md:gap-3"> |
|
|
|
|
<div className="grid min-w-0 md:px-4 md:grid-cols-2 md:gap-3"> |
|
|
|
|
{collection.relays.map((url) => ( |
|
|
|
|
<RelayItem key={url} url={url} /> |
|
|
|
|
))} |
|
|
|
|
@ -72,14 +72,16 @@ function RelayItem({ url }: { url: string }) {
@@ -72,14 +72,16 @@ function RelayItem({ url }: { url: string }) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className="min-w-0"> |
|
|
|
|
<RelaySimpleInfo |
|
|
|
|
key={relayInfo.url} |
|
|
|
|
className="clickable h-auto px-4 py-3 border-b md:rounded-lg md:border" |
|
|
|
|
className="clickable h-auto px-4 py-3 border-b md:rounded-lg md:border min-w-0" |
|
|
|
|
relayInfo={relayInfo} |
|
|
|
|
onClick={(e) => { |
|
|
|
|
e.stopPropagation() |
|
|
|
|
navigateToRelay(toRelay(relayInfo.url)) |
|
|
|
|
}} |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|