mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 10:55:56 +00:00
Fix descriptions on cards
This commit is contained in:
parent
d4936abb37
commit
efcf124003
@ -7,7 +7,6 @@
|
|||||||
max-width: 1510px;
|
max-width: 1510px;
|
||||||
max-height: 100px;
|
max-height: 100px;
|
||||||
|
|
||||||
gap: 10px;
|
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -21,7 +20,6 @@
|
|||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-height: 40%;
|
|
||||||
|
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -39,6 +37,6 @@
|
|||||||
.Card_Description {
|
.Card_Description {
|
||||||
color: var(--text-primary-color);
|
color: var(--text-primary-color);
|
||||||
|
|
||||||
overflow-y: hidden;
|
overflow-y: scroll;
|
||||||
max-height: 100%;
|
max-height: 24px;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ class Card extends React.PureComponent<IProps> {
|
|||||||
{this.props.alternate && <p className={"Card_Alternate"}>{this.props.alternate}</p>}
|
{this.props.alternate && <p className={"Card_Alternate"}>{this.props.alternate}</p>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={{ height: "50%", alignItems: "center" }}>
|
<div style={{ alignItems: "center" }}>
|
||||||
{this.props.description ? (
|
{this.props.description ? (
|
||||||
Array.isArray(this.props.description) ? (
|
Array.isArray(this.props.description) ? (
|
||||||
this.props.description.map((line, index) => (
|
this.props.description.map((line, index) => (
|
||||||
|
Loading…
Reference in New Issue
Block a user