mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
editor scrollbars
This commit is contained in:
parent
e687a3f5f3
commit
14c5f67d49
15 changed files with 349 additions and 18 deletions
|
@ -7,6 +7,7 @@ type IProps = React.HTMLAttributes<HTMLDivElement> & {
|
|||
top?: boolean;
|
||||
bottom?: boolean;
|
||||
wrap?: boolean;
|
||||
seamless?: boolean;
|
||||
};
|
||||
|
||||
const Group: FC<IProps> = ({
|
||||
|
@ -16,6 +17,7 @@ const Group: FC<IProps> = ({
|
|||
top = false,
|
||||
bottom = false,
|
||||
wrap = false,
|
||||
seamless = false,
|
||||
...props
|
||||
}) => (
|
||||
<div
|
||||
|
@ -27,6 +29,7 @@ const Group: FC<IProps> = ({
|
|||
[styles.top]: top,
|
||||
[styles.bottom]: bottom,
|
||||
[styles.wrap]: wrap,
|
||||
[styles.seamless]: seamless,
|
||||
},
|
||||
className,
|
||||
)}
|
||||
|
|
|
@ -39,4 +39,8 @@
|
|||
&.wrap {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
&.seamless > * {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue