Skip to content

Commit

Permalink
Fix grid padding by remove really specific selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
jerolimov committed May 29, 2024
1 parent 2107cfc commit b157fa2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/themes/rhdh/componentOverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ export const components = (
'& > hr[class|="MuiDivider-root"]': {
backgroundColor: themePalette.general.cardBorderColor,
},
'&[class*="MuiPaper-root-"][class*="MuiCard-root-"][class*="MuiPaper-elevation1-"][class*="MuiPaper-rounded-"]':
{
display: "flex",
flexDirection: "column",
},
},
elevation2: {
backgroundColor: themePalette.general.tableBackgroundColor,
Expand Down Expand Up @@ -315,10 +310,6 @@ export const components = (
'& > div[class*="MuiAccordion-root"]:before': {
height: 0,
},
'& > div[class*="MuiGrid-root-"][class*="MuiGrid-container-"][class*="MuiGrid-spacing-xs-2-"] > div[class*="MuiGrid-root-"][class*="MuiGrid-item-"][class*="MuiGrid-grid-xs-12-"] > div[class*="MuiBox-root-"]':
{
"-webkit-line-clamp": "2",

This comment has been minimized.

Copy link
@ciiay

ciiay May 30, 2024

Contributor

This is to fix the card being to long issue here:
janus-idp/backstage-showcase#1168
Removing this will cause issue on RHIDP-1927
You could reproduce it by making a description extremely long like this
image

},
},
},
},
Expand Down Expand Up @@ -509,14 +500,6 @@ export const components = (
marginLeft: "0",
width: "100%",
},
'& > div[class*="MuiGrid-root"][class*="MuiGrid-container"][class*="MuiGrid-spacing-xs-3"] > div[class*="MuiGrid-item"]:nth-child(odd)':
{
paddingLeft: "0",
},
'& > div[class*="MuiGrid-root"][class*="MuiGrid-container"][class*="MuiGrid-spacing-xs-6"][class*="-MuiGrid-root"] > div[class*="MuiGrid-item"][class*="MuiGrid-grid-xs-12"]':
{
paddingLeft: "0",
},
},
},
},
Expand Down

0 comments on commit b157fa2

Please sign in to comment.