소스 검색

changed desing for nested folders and files

FE_dev
Dzenis Hadzifejzovic 2 년 전
부모
커밋
b6191ffb97
2개의 변경된 파일57개의 추가작업 그리고 17개의 파일을 삭제
  1. 20
    7
      src/assets/styles/components/_files.scss
  2. 37
    10
      src/pages/FilesPage/FilesPage.js

+ 20
- 7
src/assets/styles/components/_files.scss 파일 보기

word-wrap: break-word !important; word-wrap: break-word !important;
} }


.table-cont #docx .document-container{
.table-cont #docx .document-container {
width: 400px !important; width: 400px !important;
} }


margin: 0 auto !important; margin: 0 auto !important;
} }


.files-note{
.files-note {
width: 100%; width: 100%;
resize: none; resize: none;
padding: 10px; padding: 10px;
height: 100px; height: 100px;
border: 1px solid #e4e4e4; border: 1px solid #e4e4e4;
border-radius:6px;
outline:none;
border-radius: 6px;
outline: none;
font-size: 18px; font-size: 18px;
} }


margin-left: 8px; margin-left: 8px;
} }


.pg-viewer-wrapper .document-container{
margin:0 !important;
.pg-viewer-wrapper .document-container {
margin: 0 !important;
} }


.page-navigation-buttons { .page-navigation-buttons {
.page-navigation-buttons > button { .page-navigation-buttons > button {
margin: 0 !important; margin: 0 !important;
margin-right: 12px !important; margin-right: 12px !important;
}
}

.files-file-routing {
font-size: 1.2rem;
cursor: pointer;
border: 1px solid #ffff;
border-radius: 10px;
padding-left: 10px;
padding: 4px 10px;
}

.files-file-routing:hover {
background-color: #F0F0F0;
}

+ 37
- 10
src/pages/FilesPage/FilesPage.js 파일 보기

return name; return name;
}; };


const ColoredLine = () => (
<hr
style={{
color: "#F5F5F5",
backgroundColor: "#F5F5F5",
height: 1,
}}
/>
);

return ( return (
<> <>
<div className="l-t-rectangle"></div> <div className="l-t-rectangle"></div>
<div style={{ marginBottom: "50px" }}> <div style={{ marginBottom: "50px" }}>
<div style={{ marginBottom: "30px" }}> <div style={{ marginBottom: "30px" }}>
<h1 className="page-heading">Folderi</h1> <h1 className="page-heading">Folderi</h1>
<ColoredLine />
<div className="page-navigation-buttons"> <div className="page-navigation-buttons">
<IconButton
className="c-btn c-btn--primary-outlined files-view-page-delete-btn"
<div
onClick={() => history.push({ pathname: FILES_PAGE })} onClick={() => history.push({ pathname: FILES_PAGE })}
style={{ marginLeft: 0 }}
className="files-file-routing"
> >
<p>Root</p>
</IconButton>
Root
</div>
{childParentRelations.map((relation) => ( {childParentRelations.map((relation) => (
<IconButton
className="c-btn c-btn--primary-outlined files-view-page-delete-btn"
<div
style={{ display: "flex", alignItems: "center" }}
key={relation.id} key={relation.id}
onClick={() => history.push({ pathname: relation.id })}
> >
<p>{relation.name}</p>
</IconButton>
<span
style={{
cursor: "auto",
color: "#A9A9A9",
fontWeight: "bold",
marginLeft: "10px",
}}
>
&gt;
</span>
<div
className="files-file-routing"
onClick={() => history.push({ pathname: relation.id })}
>
{relation.name}
</div>
</div>
))} ))}
</div> </div>
<ColoredLine />
</div> </div>
<div className="files-page-categories"> <div className="files-page-categories">
{categories && {categories &&
pathname: PropTypes.string, pathname: PropTypes.string,
}), }),
}), }),
setFile:PropTypes.func
setFile: PropTypes.func,
}; };


export default FilesPage; export default FilesPage;

Loading…
취소
저장