mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
correct flex styling of cardColumn, no text overflow, movement by scaling browser and unpredictable behavior anymore
This commit is contained in:
@@ -21,21 +21,22 @@ const styles = {
|
|||||||
flexFullHeight: {
|
flexFullHeight: {
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
|
justifyContent: "space-between",
|
||||||
alignSelf: "stretch"
|
alignSelf: "stretch"
|
||||||
},
|
},
|
||||||
content: {
|
|
||||||
display: "flex",
|
|
||||||
flexGrow: 1,
|
|
||||||
alignItems: "center",
|
|
||||||
justifyContent: "space-between"
|
|
||||||
},
|
|
||||||
footer: {
|
footer: {
|
||||||
display: "flex",
|
display: "flex",
|
||||||
marginTop: "auto",
|
paddingBottom: "1.5rem",
|
||||||
paddingBottom: "1.5rem"
|
|
||||||
},
|
},
|
||||||
noBottomMargin: {
|
topPart: {
|
||||||
marginBottom: "0 !important"
|
display: "flex"
|
||||||
|
},
|
||||||
|
contentRight: {
|
||||||
|
marginLeft: "auto"
|
||||||
|
},
|
||||||
|
contentLeft: {
|
||||||
|
marginBottom: "0 !important",
|
||||||
|
overflow: "hidden"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -91,25 +92,26 @@ class CardColumn extends React.Component<Props> {
|
|||||||
classes.flexFullHeight
|
classes.flexFullHeight
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className={classes.content}>
|
<div className={classes.topPart}>
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"content",
|
"content",
|
||||||
"shorten-text",
|
classes.contentLeft
|
||||||
classes.noBottomMargin
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<p className="is-marginless">
|
<p className="shorten-text is-marginless">
|
||||||
<strong>{title}</strong>
|
<strong>{title}</strong>
|
||||||
</p>
|
</p>
|
||||||
<p className="shorten-text">{description}</p>
|
<p className="shorten-text">{description}</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div className={classes.contentRight}>
|
||||||
{contentRight && contentRight}
|
{contentRight && contentRight}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={classNames("level", classes.footer)}>
|
<div className={classNames("level", classes.footer)}>
|
||||||
<div className="level-left is-hidden-mobile">{footerLeft}</div>
|
<div className="level-left is-hidden-mobile">{footerLeft}</div>
|
||||||
<div className="level-right is-mobile">{footerRight}</div>
|
<div className="level-right is-mobile is-marginless">{footerRight}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user