From 3608079911f14ac8e9e6c468d004fb71bd4c961f Mon Sep 17 00:00:00 2001 From: Naman Barkiya <82203888+namanbarkiya@users.noreply.github.com> Date: Tue, 30 Jan 2024 04:19:06 +0530 Subject: [PATCH] Improve docs/gallery card component (#1445) * Improve docs/gallery card component * added border to gallery card component --- website/src/components/GalleryPage.js | 38 +++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/website/src/components/GalleryPage.js b/website/src/components/GalleryPage.js index 312ebffdc51..26b2bc7aa13 100644 --- a/website/src/components/GalleryPage.js +++ b/website/src/components/GalleryPage.js @@ -1,9 +1,10 @@ import React, { useEffect, useState, useCallback } from "react"; import galleryData from "../data/gallery.json"; -import { Card, List, Select } from "antd"; +import { Card, List, Select, Typography } from "antd"; import { useLocation, useHistory } from "react-router-dom"; const { Option } = Select; +const { Paragraph, Title } = Typography; const GalleryPage = () => { const location = useLocation(); @@ -75,10 +76,10 @@ const GalleryPage = () => { gutter: 16, xs: 1, sm: 2, - md: 3, - lg: 3, - xl: 4, - xxl: 4, + md: 2, + lg: 2, + xl: 3, + xxl: 3, }} dataSource={filteredData} renderItem={(item) => ( @@ -92,6 +93,7 @@ const GalleryPage = () => { { : `/autogen/img/gallery/${item.image}` : `/autogen/img/gallery/default.png` } + style={{ + height: 150, + width: "fit-content", + margin: "auto", + padding: 2, + }} /> } > -
- - {item.title} - -
-
+ {item.title} + + {item.description ? item.description : item.title} -
+