Skip to content

Commit

Permalink
fix(#1244): Fix styling of the markdowns on the slider cards
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Jun 18, 2024
1 parent 070154f commit 566b057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const GovernanceActionCard: FC<ActionTypeProps> = ({ ...props }) => {
textVariant="twoLines"
dataTestId="governance-action-abstract"
isSliderCard
isMarkdown
/>
<GovernanceActionCardElement
label={t("govActions.governanceActionType")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export const GovernanceActionCardElement = ({
<Box
data-testid={dataTestId}
mb={marginBottom ?? isSliderCard ? "20px" : "32px"}
maxHeight={isSliderCard ? "72px" : "none"}
overflow={isSliderCard ? "hidden" : "visible"}
>
<Box
sx={{
Expand Down Expand Up @@ -108,7 +110,7 @@ export const GovernanceActionCardElement = ({
display: "flex",
alignItems: "center",
overflow: "hidden",
flexDirection: "column",
flexDirection: isMarkdown ? "column" : "row",
}}
>
{isMarkdown ? (
Expand Down

0 comments on commit 566b057

Please sign in to comment.