mirror of
https://github.com/lemeow125/EquipmentTracker-Frontend.git
synced 2024-11-17 06:09:25 +08:00
Reduce drawer button width
This commit is contained in:
parent
ab2525ad95
commit
ad83423fc2
1 changed files with 31 additions and 34 deletions
|
@ -10,7 +10,6 @@ export interface props {
|
|||
export default function DrawerButton(props: props) {
|
||||
const [clicked, setClicked] = useState(false);
|
||||
return (
|
||||
<div>
|
||||
<button
|
||||
onClick={props.onClick}
|
||||
onMouseDown={() => {
|
||||
|
@ -22,14 +21,13 @@ export default function DrawerButton(props: props) {
|
|||
onMouseLeave={() => setClicked(false)}
|
||||
style={{
|
||||
borderRadius: 24,
|
||||
minWidth: "192px",
|
||||
maxWidth: "192px",
|
||||
minWidth: "160px",
|
||||
maxWidth: "160px",
|
||||
borderColor: colors.button_border,
|
||||
borderStyle: "solid",
|
||||
borderWidth: "2px",
|
||||
paddingBottom: 0,
|
||||
paddingTop: 0,
|
||||
paddingRight: "4px",
|
||||
paddingLeft: "4px",
|
||||
marginBottom: "4px",
|
||||
marginTop: "4px",
|
||||
|
@ -40,12 +38,11 @@ export default function DrawerButton(props: props) {
|
|||
style={{
|
||||
...(clicked ? styles.text_light : styles.text_dark),
|
||||
...styles.text_M,
|
||||
...{ textAlign: "left", marginLeft: "4px" },
|
||||
...{ textAlign: "left", marginLeft: "16px" },
|
||||
}}
|
||||
>
|
||||
{props.label}
|
||||
</p>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue