1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

better editor layout

This commit is contained in:
muerwre 2019-08-01 04:36:09 +07:00
parent a2bb40bb14
commit fcfc16c157
11 changed files with 242 additions and 67 deletions

View file

@ -4,15 +4,17 @@ import classNames = require("classnames");
type IProps = HTMLAttributes<HTMLDivElement> & {
seamless?: boolean;
stretchy?: boolean
}
const Panel: FC<IProps> = ({
className,
children,
seamless,
stretchy,
...props
}) => (
<div className={classNames(styles.panel, className, { seamless })} {...props}>
<div className={classNames(styles.panel, className, { seamless, stretchy })} {...props}>
{children}
</div>
);

View file

@ -10,4 +10,5 @@
@include outer_shadow();
&:global(.seamless) { padding: 0; }
&:global(.stretchy) { flex: 1; align-items: flex-start; }
}