mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
fix: curated collections ui tweak
This commit is contained in:
parent
4b74118fd9
commit
400cd740bd
|
|
@ -191,20 +191,20 @@ export default function MapsManager(props: {
|
|||
>
|
||||
Download Custom Map File
|
||||
</StyledButton>
|
||||
<StyledButton
|
||||
onClick={() => fetchLatestCollections.mutate()}
|
||||
disabled={fetchLatestCollections.isPending}
|
||||
icon="CloudArrowDownIcon"
|
||||
>
|
||||
Fetch Latest Collections
|
||||
</StyledButton>
|
||||
</div>
|
||||
</div>
|
||||
{!props.maps.baseAssetsExist && (
|
||||
<MissingBaseAssetsAlert loading={downloading} onClickDownload={downloadBaseAssets} />
|
||||
)}
|
||||
<StyledSectionHeader title="Curated Map Collections" className="mt-8 mb-4" />
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
<StyledSectionHeader title="Curated Map Collections" className="mt-8 !mb-4" />
|
||||
<StyledButton
|
||||
onClick={() => fetchLatestCollections.mutate()}
|
||||
disabled={fetchLatestCollections.isPending}
|
||||
icon="CloudArrowDownIcon"
|
||||
>
|
||||
Fetch Latest Collections
|
||||
</StyledButton>
|
||||
<div className="!mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
{curatedCollections?.map((collection) => (
|
||||
<CuratedCollectionCard
|
||||
key={collection.slug}
|
||||
|
|
@ -212,6 +212,9 @@ export default function MapsManager(props: {
|
|||
onClick={(collection) => confirmDownload(collection)}
|
||||
/>
|
||||
))}
|
||||
{curatedCollections && curatedCollections.length === 0 && (
|
||||
<p className="text-gray-500">No curated collections available.</p>
|
||||
)}
|
||||
</div>
|
||||
<StyledSectionHeader title="Stored Map Files" className="mt-12 mb-4" />
|
||||
<StyledTable<FileEntry & { actions?: any }>
|
||||
|
|
|
|||
|
|
@ -198,13 +198,6 @@ export default function ZimRemoteExplorer() {
|
|||
<h1 className="text-4xl font-semibold mb-2">ZIM Remote Explorer</h1>
|
||||
<p className="text-gray-500">Browse and download ZIM files for offline reading!</p>
|
||||
</div>
|
||||
<StyledButton
|
||||
onClick={() => fetchLatestCollections.mutate()}
|
||||
disabled={fetchLatestCollections.isPending}
|
||||
icon="CloudArrowDownIcon"
|
||||
>
|
||||
Fetch Latest Collections
|
||||
</StyledButton>
|
||||
</div>
|
||||
{!isOnline && (
|
||||
<Alert
|
||||
|
|
@ -223,16 +216,26 @@ export default function ZimRemoteExplorer() {
|
|||
className="!mt-6"
|
||||
/>
|
||||
)}
|
||||
<StyledSectionHeader title="Curated ZIM Collections" className="mt-8 mb-4" />
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
<StyledSectionHeader title="Curated ZIM Collections" className="mt-8 !mb-4" />
|
||||
<StyledButton
|
||||
onClick={() => fetchLatestCollections.mutate()}
|
||||
disabled={fetchLatestCollections.isPending}
|
||||
icon="CloudArrowDownIcon"
|
||||
>
|
||||
Fetch Latest Collections
|
||||
</StyledButton>
|
||||
<div className="mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
{curatedCollections?.map((collection) => (
|
||||
<CuratedCollectionCard
|
||||
key={collection.slug}
|
||||
collection={collection}
|
||||
onClick={(collection) => confirmDownload(collection)}
|
||||
size='large'
|
||||
size="large"
|
||||
/>
|
||||
))}
|
||||
{curatedCollections && curatedCollections.length === 0 && (
|
||||
<p className="text-gray-500">No curated collections available.</p>
|
||||
)}
|
||||
</div>
|
||||
<StyledSectionHeader title="Browse the Kiwix Library" className="mt-12 mb-4" />
|
||||
<div className="flex justify-start mt-4">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user