@@ -73,7 +73,6 @@ export const MainContainer = styled(Box)(({ theme }) => ({
7373 : theme . palette . background . secondary ,
7474 paddingTop : theme . spacing ( 2 ) ,
7575 borderRadius : '1rem' ,
76- marginBottom : theme . spacing ( 4 ) ,
7776 display : 'flex' ,
7877 alignItems : 'center' ,
7978 flexDirection : 'column'
@@ -137,22 +136,21 @@ export const IconContainer = styled(Box)(() => ({
137136 }
138137} ) ) ;
139138
140- export const ContentWrapper = styled ( CardContent ) < ContentWrapperProps > ( ( { cardId , theme } ) => ( {
139+ export const ContentWrapper = styled ( CardContent ) < ContentWrapperProps > ( ( ) => ( {
141140 height : '100%' ,
142141 display : 'flex' ,
143142 flexDirection : 'column' ,
144- padding : theme . spacing ( 2 ) ,
145- paddingInline : cardId === 'download-icon' ? '12px' : theme . spacing ( 2 ) ,
143+ padding : '12px' ,
146144 '&:last-child' : {
147- paddingBottom : theme . spacing ( 2 )
145+ paddingBottom : '12px'
148146 }
149147} ) ) ;
150148
151149export const HeaderSection = styled ( Box ) ( {
152150 display : 'flex' ,
153151 justifyContent : 'space-between' ,
154152 alignItems : 'flex-start' ,
155- marginBottom : '1rem ' ,
153+ marginBottom : '0.5rem ' ,
156154 gap : '0.6rem'
157155} ) ;
158156
@@ -163,7 +161,14 @@ export const HeaderTitle = styled(Typography)(({ theme }) => ({
163161 lineHeight : 1.2 ,
164162 marginTop : '4px' ,
165163 textTransform : 'uppercase' ,
166- letterSpacing : '0.5px'
164+ letterSpacing : '0.5px' ,
165+ display : '-webkit-box' ,
166+ WebkitLineClamp : 2 ,
167+ WebkitBoxOrient : 'vertical' ,
168+ overflow : 'hidden' ,
169+ textOverflow : 'clip' ,
170+ maxWidth : '70%' ,
171+ height : '2.4em'
167172} ) ) ;
168173
169174export const StatsValue = styled ( Typography ) ( ( { theme } ) => ( {
@@ -175,7 +180,7 @@ export const StatsValue = styled(Typography)(({ theme }) => ({
175180} ) ) ;
176181
177182export const RepoSection = styled ( Box ) ( ( { theme } ) => ( {
178- marginBlock : '.35rem ' ,
183+ marginBottom : '1rem ' ,
179184 padding : '8px' ,
180185 borderRadius : '8px' ,
181186 background : theme . palette . mode === 'light' ? '#f8fafc' : DARK_TEAL ,
@@ -197,7 +202,8 @@ export const RepoTitle = styled(Typography)(({ theme }) => ({
197202 WebkitBoxOrient : 'vertical' ,
198203 overflow : 'hidden' ,
199204 textOverflow : 'ellipsis' ,
200- height : '2.6em'
205+ minHeight : 'fit-content' ,
206+ maxHeight : '2.6em'
201207} ) ) ;
202208
203209export const UserNameText = styled ( Typography ) ( ( { theme } ) => ( {
0 commit comments