mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-17 06:19:27 +08:00
Made button labels smaller
This commit is contained in:
parent
a138b6d0ca
commit
03df52f64f
1 changed files with 10 additions and 9 deletions
|
@ -23,16 +23,17 @@ export default function Button(props: props) {
|
||||||
onMouseLeave={() => setClicked(false)}
|
onMouseLeave={() => setClicked(false)}
|
||||||
style={{
|
style={{
|
||||||
borderRadius: 24,
|
borderRadius: 24,
|
||||||
minWidth: "15vw",
|
minWidth: "50%",
|
||||||
|
maxWidth: "128px",
|
||||||
borderColor: colors.button_border,
|
borderColor: colors.button_border,
|
||||||
borderStyle: "solid",
|
borderStyle: "solid",
|
||||||
borderWidth: 2,
|
borderWidth: "2px",
|
||||||
paddingBottom: "0",
|
paddingBottom: 0,
|
||||||
paddingTop: "0",
|
paddingTop: 0,
|
||||||
paddingRight: "5vw",
|
paddingRight: "4px",
|
||||||
paddingLeft: "5vw",
|
paddingLeft: "4px",
|
||||||
marginBottom: "0.5vh",
|
marginBottom: "4px",
|
||||||
marginTop: "0.5vh",
|
marginTop: "4px",
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
props.type == "light"
|
props.type == "light"
|
||||||
? clicked
|
? clicked
|
||||||
|
@ -52,7 +53,7 @@ export default function Button(props: props) {
|
||||||
: clicked
|
: clicked
|
||||||
? styles.text_dark
|
? styles.text_dark
|
||||||
: styles.text_light),
|
: styles.text_light),
|
||||||
...styles.text_M,
|
...styles.text_S,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{props.label}
|
{props.label}
|
||||||
|
|
Loading…
Reference in a new issue