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:
parent
ee17b72a7f
commit
bfc779745a
6 changed files with 45 additions and 12 deletions
15
src/components/editors/EditorPanel/index.tsx
Normal file
15
src/components/editors/EditorPanel/index.tsx
Normal 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 };
|
7
src/components/editors/EditorPanel/styles.scss
Normal file
7
src/components/editors/EditorPanel/styles.scss
Normal file
|
@ -0,0 +1,7 @@
|
|||
.panel {
|
||||
height: 60px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
bottom: 100%;
|
||||
}
|
|
@ -9,7 +9,9 @@ interface IProps {
|
|||
|
||||
const ImageEditor: FC<IProps> = ({
|
||||
}) => (
|
||||
<div className={styles.uploads} />
|
||||
<div className={styles.uploads}>
|
||||
<div />
|
||||
</div>
|
||||
)
|
||||
|
||||
export { ImageEditor };
|
|
@ -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));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue