mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 09:56:24 +00:00
chore: fix some issues with code relating to the card
This commit is contained in:
parent
5e1d35df23
commit
eb7b329758
2 changed files with 10 additions and 18 deletions
|
@ -50,20 +50,12 @@ export function SpecialCard({ title, subtitle, description, cardImage, backgroun
|
||||||
<div className={cl("card-flex-main")}>
|
<div className={cl("card-flex-main")}>
|
||||||
<Forms.FormTitle className={cl("title")} tag="h5">{title}</Forms.FormTitle>
|
<Forms.FormTitle className={cl("title")} tag="h5">{title}</Forms.FormTitle>
|
||||||
<Forms.FormText className={cl("subtitle")}>{subtitle}</Forms.FormText>
|
<Forms.FormText className={cl("subtitle")}>{subtitle}</Forms.FormText>
|
||||||
<Forms.FormText className={cl("text")}>
|
<Forms.FormText className={cl("text")}>{description}</Forms.FormText>
|
||||||
{description.split("\n").map((line, index) => (
|
|
||||||
<React.Fragment key={index}>
|
|
||||||
{line}
|
|
||||||
<br />
|
|
||||||
</React.Fragment>
|
|
||||||
))}
|
|
||||||
</Forms.FormText>
|
|
||||||
|
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
cardImage && (
|
cardImage && (
|
||||||
<>
|
|
||||||
<div className={cl("image-container")}>
|
<div className={cl("image-container")}>
|
||||||
<img
|
<img
|
||||||
role="presentation"
|
role="presentation"
|
||||||
|
@ -72,7 +64,6 @@ export function SpecialCard({ title, subtitle, description, cardImage, backgroun
|
||||||
className={cl("image")}
|
className={cl("image")}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
color: black;
|
color: black;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vc-special-seperator {
|
.vc-special-seperator {
|
||||||
|
|
Loading…
Reference in a new issue