Skip to content

Commit

Permalink
simplify assetitem & notice fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dromzeh committed Aug 23, 2024
1 parent c18fb41 commit da73588
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
5 changes: 3 additions & 2 deletions src/app/[game]/[category]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ export default async function GameCategoryPage({ params }: Readonly<Props>) {
/>
<div className="flex flex-col">
<AlertDescription className="text-muted-foreground">
Double tap (do not hold) on an asset to
download it, or single tap to select assets.
Please use the designated download buttons
to download assets, or the quality of the
assets may be affected.
</AlertDescription>
</div>
</div>
Expand Down
16 changes: 5 additions & 11 deletions src/components/asset/asset-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,10 @@ export function AssetItem({
/>
</div>
<div className="flex flex-col mt-2 p-2">
<div className="flex flex-row justify-between items-center">
<div className="flex flex-col">
<p className="font-semibold line-clamp-1 text-ellipsis">
{asset.name}
</p>
<p className="text-muted-foreground flex text-xs">
{timeAgo(asset.uploaded)}
</p>
</div>

<div className="flex flex-col gap-2">
<Button
variant={"secondary"}
size="sm"
className="w-full"
onClick={() => setDialogOpen(true)}
>
<DownloadIcon size={16} />
Expand All @@ -77,6 +68,9 @@ export function AssetItem({
</div>
</Card>
<DialogContent>
<DialogHeader>
<DialogTitle>{asset.name}</DialogTitle>
</DialogHeader>
<DialogDescription>
<div className="relative flex items-center justify-center">
<img
Expand Down
2 changes: 1 addition & 1 deletion src/lib/advisory-games.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// TODO(dromzeh): relocate this to the API, fine here for now

export const advisoryGames = ["needy-streamer-overload"];
export const advisoryGames = ["goddess-of-victory-nikke"];

0 comments on commit da73588

Please sign in to comment.