1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +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")}> <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" src={cardImage}
src={cardImage} alt=""
alt="" className={cl("image")}
className={cl("image")} />
/> </div>
</div>
</>
) )
} }
</div> </div>

View file

@ -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 {