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")}>
|
||||
<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"
|
||||
|
@ -72,7 +64,6 @@ export function SpecialCard({ title, subtitle, description, cardImage, backgroun
|
|||
className={cl("image")}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
</div>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
color: black;
|
||||
font-size: 1em;
|
||||
margin-top: 1em;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.vc-special-seperator {
|
||||
|
|
Loading…
Reference in a new issue