fix: give attachment names room next to the tile's buttons on tablets and laptops

This commit is contained in:
Linus Rath
2026-11-03 05:36:28 +01:00
parent 8b50344e6c
commit bad391e664
+1 -1
View File
@@ -268,7 +268,7 @@ export function ReaderAttachments<T extends ReaderAttachmentItem>({
<div className={cn(
"grid",
layout === "cards" ? "grid-cols-[repeat(auto-fill,minmax(10rem,1fr))] gap-3" : "grid-cols-[repeat(auto-fill,minmax(15rem,1fr))] gap-2",
layout === "cards" ? "grid-cols-[repeat(auto-fill,minmax(10rem,1fr))] gap-3" : "grid-cols-[repeat(auto-fill,minmax(min(100%,20rem),1fr))] gap-2",
)}>
{shown.map((attachment) => (
<div key={attachment.id} className="flex min-w-0 flex-col gap-1">