mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-21 04:17:01 -04:00
Fix Settings UI
This commit is contained in:
parent
6398dd25d2
commit
572bfcee6c
6 changed files with 61 additions and 38 deletions
17
src/components/Flex.tsx
Normal file
17
src/components/Flex.tsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { PropsWithChildren } from "react";
|
||||
import type { React } from '../webpack/common';
|
||||
|
||||
export function Flex(props: React.PropsWithChildren<{
|
||||
flexDirection?: React.CSSProperties["flexDirection"];
|
||||
style?: React.CSSProperties;
|
||||
}>) {
|
||||
props.style ??= {};
|
||||
props.style.flexDirection ||= props.flexDirection;
|
||||
props.style.gap ??= "1em";
|
||||
props.style.display = "flex";
|
||||
return (
|
||||
<div {...props}>
|
||||
{props.children}
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue