@@ -42,7 +42,7 @@ const DatabasePage: React.FC = () => {
4242 }
4343
4444 return (
45- < Container maxWidth = "lg " >
45+ < Container maxWidth = "xl " >
4646 < Box sx = { { padding : { xs : 2 , md : 4 } , marginTop : { xs : 4 } } } >
4747 < Typography variant = "h1" gutterBottom sx = { { color : Colors . green } } >
4848 Databases
@@ -76,9 +76,9 @@ const DatabasePage: React.FC = () => {
7676 textTransform : "none" ,
7777 fontWeight : 600 ,
7878 borderColor : Colors . lightGray ,
79- backgroundImage : db . logo ? `url(${ db . logo } )` : "none" ,
80- backgroundSize : "cover" ,
81- backgroundPosition : "center" ,
79+ // backgroundImage: db.logo ? `url(${db.logo})` : "none",
80+ // backgroundSize: "cover",
81+ // backgroundPosition: "center",
8282 color : Colors . lightGray ,
8383 borderRadius : 2 ,
8484 transition : "all 0.3s ease" ,
@@ -97,8 +97,28 @@ const DatabasePage: React.FC = () => {
9797 } }
9898 onClick = { ( ) => navigate ( `${ RoutesEnum . DATABASES } /${ db . id } ` ) }
9999 >
100+ { /* Logo as Avatar */ }
101+ { db . logo && (
102+ < Avatar
103+ variant = "square"
104+ src = { db . logo }
105+ alt = { db . fullname || "Database Logo" }
106+ sx = { {
107+ width : 46 ,
108+ height : 46 ,
109+ mb : 1 ,
110+ // position: "absolute",
111+ // bottom: 5,
112+ // right: 5,
113+ "& img" : {
114+ objectFit : "contain" , // show full image inside
115+ } ,
116+ } }
117+ />
118+ ) }
119+
100120 { /* Overlay for fade/blur */ }
101- < Box
121+ { /* <Box
102122 sx={{
103123 position: "absolute",
104124 top: 0,
@@ -109,15 +129,15 @@ const DatabasePage: React.FC = () => {
109129 backdropFilter: "blur(4px)",
110130 zIndex: 1,
111131 }}
112- />
132+ /> */ }
113133
114134 { /* Text goes above overlay */ }
115135 < Box sx = { { zIndex : 2 , textAlign : "center" } } >
116136 < Typography
117137 variant = "h6"
118138 component = "span"
119139 sx = { {
120- color : "white" ,
140+ color : Colors . lightGray ,
121141 display : "-webkit-box" ,
122142 WebkitBoxOrient : "vertical" ,
123143 WebkitLineClamp : 2 , // only show 2 lines
@@ -129,7 +149,7 @@ const DatabasePage: React.FC = () => {
129149 { db . fullname || "Unnamed Database" }
130150 </ Typography >
131151 < Typography
132- sx = { { color : "white" } }
152+ sx = { { color : Colors . primary . light } }
133153 > { `(${ db . name } )` } </ Typography >
134154 </ Box >
135155 </ Button >
0 commit comments