SpotifyControls plugin (#190)

This commit is contained in:
Ven
2022-11-07 22:28:29 +01:00
committed by GitHub
parent 7d5ade21fc
commit 6a8564089b
9 changed files with 852 additions and 64 deletions

View File

@ -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}