Toggle navigation
Toggle navigation
This project
Loading...
Sign in
卢阳
/
front_backend_zImage
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
ly0303521
2026-01-12 11:18:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ad800c181558fff400d9c2421e79ec659d4492fc
ad800c18
1 parent
10beaa92
调整视频预览的大小
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
z-image-generator/components/MasonryGrid.tsx
z-image-generator/components/MasonryGrid.tsx
View file @
ad800c1
...
...
@@ -11,9 +11,13 @@ interface MasonryGridProps {
}
const MasonryGrid: React.FC<MasonryGridProps> = ({ images, onImageClick, onLike, currentUser, isVideoGallery = false }) => {
const columnClass = isVideoGallery
? "columns-4 md:columns-6 lg:columns-8 xl:columns-10"
: "columns-2 md:columns-3 lg:columns-4 xl:columns-5";
return (
<div className="w-full px-4 md:px-8 py-6">
<div className=
"columns-2 md:columns-3 lg:columns-4 xl:columns-5 gap-4 space-y-4"
>
<div className=
{`${columnClass} gap-4 space-y-4`}
>
{images.map((img) => (
<ImageCard
key={img.id}
...
...
Please
register
or
login
to post a comment