1
0
Fork 1
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:
khcrysalis 2024-12-23 18:32:13 -08:00
parent 5e1d35df23
commit eb7b329758
2 changed files with 10 additions and 18 deletions

View file

@ -50,29 +50,20 @@ export function SpecialCard({ title, subtitle, description, cardImage, backgroun
<div className={cl("card-flex-main")}>
<Forms.FormTitle className={cl("title")} tag="h5">{title}</Forms.FormTitle>
<Forms.FormText className={cl("subtitle")}>{subtitle}</Forms.FormText>
<Forms.FormText className={cl("text")}>
{description.split("\n").map((line, index) => (
<React.Fragment key={index}>
{line}
<br />
</React.Fragment>
))}
</Forms.FormText>
<Forms.FormText className={cl("text")}>{description}</Forms.FormText>
{children}
</div>
{
cardImage && (
<>
<div className={cl("image-container")}>
<img
role="presentation"
src={cardImage}
alt=""
className={cl("image")}
/>
</div>
</>
<div className={cl("image-container")}>
<img
role="presentation"
src={cardImage}
alt=""
className={cl("image")}
/>
</div>
)
}
</div>

View file

@ -34,6 +34,7 @@
color: black;
font-size: 1em;
margin-top: 1em;
white-space: pre-line;
}
.vc-special-seperator {