diff options
author | Ven <vendicated@riseup.net> | 2022-11-07 22:28:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 22:28:29 +0100 |
commit | 6a8564089bea162d9c4d52925eb1239b6b270fa4 (patch) | |
tree | b411e223ffab2752175e2e883908cd814f73455d /src/components/Flex.tsx | |
parent | 7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2 (diff) | |
download | Vencord-6a8564089bea162d9c4d52925eb1239b6b270fa4.tar.gz Vencord-6a8564089bea162d9c4d52925eb1239b6b270fa4.tar.bz2 Vencord-6a8564089bea162d9c4d52925eb1239b6b270fa4.zip |
SpotifyControls plugin (#190)
Diffstat (limited to 'src/components/Flex.tsx')
-rw-r--r-- | src/components/Flex.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/Flex.tsx b/src/components/Flex.tsx index c371cb3..1987fab 100644 --- a/src/components/Flex.tsx +++ b/src/components/Flex.tsx @@ -24,9 +24,11 @@ export function Flex(props: React.PropsWithChildren<{ className?: string; } & React.HTMLProps<HTMLDivElement>>) { props.style ??= {}; - props.style.flexDirection ||= props.flexDirection; - props.style.gap ??= "1em"; props.style.display = "flex"; + // TODO(ven): Remove me, what was I thinking?? + props.style.gap ??= "1em"; + props.style.flexDirection ||= props.flexDirection; + delete props.flexDirection; return ( <div {...props}> {props.children} |