1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

added editor panel

This commit is contained in:
muerwre 2019-08-06 19:00:28 +07:00
parent ee17b72a7f
commit bfc779745a
6 changed files with 45 additions and 12 deletions

View file

@ -0,0 +1,15 @@
import React, { FC } from 'react';
import * as styles from './styles.scss';
import { INode } from '~/redux/types';
interface IProps {
data: INode;
setData: (val: INode) => void;
};
const EditorPanel: FC<IProps> = ({
}) => (
<div className={styles.panel} />
)
export { EditorPanel };

View file

@ -0,0 +1,7 @@
.panel {
height: 60px;
position: absolute;
left: 0;
width: 100%;
bottom: 100%;
}

View file

@ -9,7 +9,9 @@ interface IProps {
const ImageEditor: FC<IProps> = ({
}) => (
<div className={styles.uploads} />
<div className={styles.uploads}>
<div />
</div>
)
export { ImageEditor };

View file

@ -1,3 +1,14 @@
.uploads {
min-height: 200px;
padding-bottom: 60px;
box-sizing: border-box;
display: grid;
grid-column-gap: $gap;
grid-row-gap: $gap;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
@media (max-width: 600px) {
grid-template-columns: repeat(auto-fill, minmax(30vw, 1fr));
}
}