Skip to content

Commit 26af799

Browse files
authored
Merge pull request #1831 from AletheiaFact/button-styling-fix
Fix button text styling
2 parents 58792a1 + 19539aa commit 26af799

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

src/components/Header/DonateButton.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ const DonateButton = ({ header = false, style = {} }) => {
1717
style={{
1818
fontWeight: 600,
1919
height: header ? 32 : 40,
20+
lineHeight: "16px",
21+
textAlign: "center",
22+
justifyContent: "center",
2023
...style,
2124
}}
2225
>

src/components/Personality/PersonalityCardButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ const PersonalityCardButton = ({
2626
{...buttonProps}
2727
style={{
2828
fontSize: "12px",
29-
lineHeight: "20px",
29+
lineHeight: "16px",
3030
height: "auto",
3131
padding: "4px 12px",
32+
textAlign: "center",
33+
justifyContent: "center",
3234
}}
3335
>
3436
<span style={{ marginTop: 4 }}>

src/components/Source/SourceListItem.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ const SourceListItem = ({ source }) => {
5252
href={source.href}
5353
target="_blank"
5454
rel="noopener noreferrer"
55-
style={{ width: "fit-content" }}
55+
style={{
56+
width: "fit-content",
57+
textAlign: "center",
58+
justifyContent: "center",
59+
lineHeight: "13px",
60+
padding: "20px 8px",
61+
}}
5662
>
5763
{t("sources:sourceCardButton")}
5864
</AletheiaButton>

src/components/topics/TopicForm.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ const TopicForm = ({
144144
padding: "0 5px",
145145
fontSize: 12,
146146
marginLeft: 5,
147+
textAlign: "center",
148+
justifyContent: "center",
149+
lineHeight: "13px",
147150
}}
148151
>
149152
{t("topics:addTopicsButton")}

0 commit comments

Comments
 (0)