chore: optimize layout of image resources (#2221)

Optimize layout of image resource
pull/2227/head
Athurg Gooth 1 year ago committed by GitHub
parent e6a90a8be8
commit 0c0c72c3ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,12 @@ const MemoResourceListView: React.FC<Props> = (props: Props) => {
/>
</div>
) : (
<div className={classNames("w-full mt-2 grid gap-2 grid-cols-2 sm:grid-cols-3")}>
<div
className={classNames(
"w-full mt-2 grid gap-2 grid-cols-2",
imageResourceList.length === 4 ? "sm:grid-cols-2" : "sm:grid-cols-3"
)}
>
{imageResourceList.map((resource) => {
const url = getResourceUrl(resource);
return (

Loading…
Cancel
Save