@@ -102,7 +102,18 @@ const DatabaseCard: React.FC<Props> = ({
102102 } ;
103103
104104 return (
105- < Card sx = { { mb : 3 , position : "relative" } } >
105+ < Card
106+ sx = { {
107+ mb : 3 ,
108+ position : "relative" ,
109+ transition : "all .2s ease" ,
110+ borderStyle : "dashed" ,
111+ borderColor : "divider" ,
112+ backgroundColor : "#FCFCFF" ,
113+ boxShadow : 0 ,
114+ width : { xs : "350px" , md : "200px" } ,
115+ } }
116+ >
106117 < CardContent >
107118 < Box
108119 sx = { {
@@ -113,45 +124,44 @@ const DatabaseCard: React.FC<Props> = ({
113124 gap : 2 ,
114125 } }
115126 >
116- { /* Logo as Avatar */ }
117- < Box sx = { { display : "flex" , alignItems : "center" } } >
118- { logo && (
119- < Avatar
120- variant = "square"
121- src = { logo }
122- alt = { fullName || "Database Logo" }
127+ < Box >
128+ < Box sx = { { display : "flex" , gap : 1 , alignItems : "flex-start" } } >
129+ < Box sx = { { display : "flex" , alignItems : "center" } } >
130+ { logo && (
131+ < Avatar
132+ variant = "square"
133+ src = { logo }
134+ alt = { fullName || "Database Logo" }
135+ sx = { {
136+ width : 40 ,
137+ height : 40 ,
138+ mb : 1 ,
139+ "& img" : {
140+ objectFit : "contain" , // show full image inside
141+ } ,
142+ } }
143+ />
144+ ) }
145+ </ Box >
146+ < Typography
123147 sx = { {
124- width : 60 ,
125- height : 60 ,
126- mb : 1 ,
127- "& img" : {
128- objectFit : "contain" , // show full image inside
129- } ,
148+ fontWeight : 600 ,
149+ color : Colors . darkPurple ,
150+ textDecoration : "none" ,
151+ ":hover" : { textDecoration : "underline" } ,
130152 } }
131- />
132- ) }
133- </ Box >
134- { /* database card */ }
135- < Box >
136- < Typography
137- variant = "h6"
138- sx = { {
139- fontWeight : 600 ,
140- color : Colors . darkPurple ,
141- textDecoration : "none" ,
142- ":hover" : { textDecoration : "underline" } ,
143- } }
144- component = { Link }
145- to = { databaseLink }
146- target = "_blank"
147- >
148- Database:{ " " }
149- { highlightKeyword ( fullName || "Untitled Database" , keyword ) }
150- </ Typography >
151- < Stack spacing = { 2 } margin = { 1 } >
153+ component = { Link }
154+ to = { databaseLink }
155+ target = "_blank"
156+ >
157+ { highlightKeyword ( fullName || "Untitled Database" , keyword ) }
158+ </ Typography >
159+ </ Box >
160+
161+ < Stack spacing = { 0.5 } >
152162 < Stack
153163 direction = "row"
154- spacing = { 1 }
164+ spacing = { 0.5 }
155165 flexWrap = "wrap"
156166 gap = { 1 }
157167 alignItems = "center"
@@ -163,32 +173,6 @@ const DatabaseCard: React.FC<Props> = ({
163173 { Array . isArray ( modalities ) && modalities . length > 0 ? (
164174 modalities . map ( renderDatatype )
165175 ) : (
166- // (
167- // modalities.map((mod, idx) => (
168- // <Chip
169- // key={idx}
170- // label={mod}
171- // variant="outlined"
172- // onClick={() => onChipClick("modality", mod)}
173- // sx={{
174- // "& .MuiChip-label": {
175- // paddingX: "6px",
176- // fontSize: "0.8rem",
177- // },
178- // height: "24px",
179- // color: Colors.darkPurple,
180- // border: `1px solid ${Colors.darkPurple}`,
181- // fontWeight: "bold",
182- // transition: "all 0.2s ease",
183- // "&:hover": {
184- // backgroundColor: `${Colors.purple} !important`,
185- // color: "white",
186- // borderColor: Colors.purple,
187- // },
188- // }}
189- // />
190- // ))
191- // )
192176 < Typography variant = "body2" mt = { 1 } >
193177 N/A
194178 </ Typography >
0 commit comments