fix: unify home download button sizing

This commit is contained in:
TerryM
2026-06-05 18:47:04 +08:00
parent 908f89ac24
commit 2d003c6fef
4 changed files with 10 additions and 10 deletions

View File

@@ -167,7 +167,7 @@ function LatestFileCard({ post }: { post: Post }) {
type="button"
onClick={handleDownload}
disabled={isDownloading}
className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-[#191921] transition hover:bg-[#22232D] disabled:cursor-wait"
className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-[#191921] transition hover:bg-[#22232D] disabled:cursor-wait"
aria-label={
isDownloading ? t("downloading") : `Download ${att.filename}`
}
@@ -175,11 +175,11 @@ function LatestFileCard({ post }: { post: Post }) {
>
{isDownloading ? (
<LoaderCircle
className="h-5 w-5 animate-spin text-[#A8A9AE]"
className="h-4 w-4 animate-spin text-[#A8A9AE]"
strokeWidth={2.3}
/>
) : (
<DownloadCloudIcon />
<DownloadCloudIcon className="h-5 w-5" />
)}
</button>
</div>