mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: assets having unreasonable widths and heights
This commit is contained in:
@@ -98,7 +98,7 @@ export function DraggableItem({
|
|||||||
{variant === "card" ? (
|
{variant === "card" ? (
|
||||||
<div
|
<div
|
||||||
ref={dragRef}
|
ref={dragRef}
|
||||||
className={cn("group relative", containerClassName ?? "size-28")}
|
className={cn("group relative", containerClassName ?? "w-28")}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|||||||
@@ -317,9 +317,9 @@ function MediaItemList({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(isGrid ? "grid gap-2" : "flex flex-col gap-1")}
|
className={cn(isGrid ? "grid gap-4" : "flex flex-col gap-1")}
|
||||||
style={
|
style={
|
||||||
isGrid ? { gridTemplateColumns: "repeat(auto-fill, 160px)" } : undefined
|
isGrid ? { gridTemplateColumns: "repeat(auto-fill, 7rem)" } : undefined
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user