fix: assets having unreasonable widths and heights

This commit is contained in:
Maze Winther 2026-03-04 18:27:02 +01:00
parent 6018efc5ac
commit b09635064a
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ export function DraggableItem({
{variant === "card" ? (
<div
ref={dragRef}
className={cn("group relative", containerClassName ?? "size-28")}
className={cn("group relative", containerClassName ?? "w-28")}
>
<div
className={cn(

View File

@ -317,9 +317,9 @@ function MediaItemList({
return (
<div
className={cn(isGrid ? "grid gap-2" : "flex flex-col gap-1")}
className={cn(isGrid ? "grid gap-4" : "flex flex-col gap-1")}
style={
isGrid ? { gridTemplateColumns: "repeat(auto-fill, 160px)" } : undefined
isGrid ? { gridTemplateColumns: "repeat(auto-fill, 7rem)" } : undefined
}
>
{items.map((item) => (