This commit is contained in:
MedzikUser 2022-06-11 10:46:25 +02:00
parent bcdd5ffa4c
commit 1dcf7250ba
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
4 changed files with 40 additions and 27 deletions

View File

@ -1,12 +1,12 @@
# HomeDisk cloud server
[![docs](https://img.shields.io/badge/docs-rust_docs-fff)](https://homedisk-doc.vercel.app/cloud/)
[![license badge](https://img.shields.io/github/license/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
[![code size badge](https://img.shields.io/github/languages/code-size/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
[![total lines badge](https://img.shields.io/tokei/lines/github/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
[![Build release binaries (and publish them if this is a tag)](https://github.com/MedzikUser/HomeDisk/actions/workflows/build-release-binaries.yml/badge.svg)](https://github.com/MedzikUser/HomeDisk/actions/workflows/build-release-binaries.yml)
[![docs](https://img.shields.io/badge/docs-rust_docs-fff)](https://homedisk-doc.vercel.app)
[![](https://img.shields.io/github/license/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
[![](https://img.shields.io/github/languages/code-size/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
[![](https://img.shields.io/tokei/lines/github/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
[![Rust CI](https://github.com/MedzikUser/HomeDisk/actions/workflows/rust.yml/badge.svg)](https://github.com/MedzikUser/HomeDisk/actions/workflows/rust.yml)
![](https://i.imgur.com/gi7KBVE.png)
![](https://i.imgur.com/fOtiSf7.png)
![](https://i.imgur.com/vLautmq.png)

View File

@ -0,0 +1,8 @@
import styled from "styled-components"
const IconDiv = styled.div`
padding-right: 5px;
padding-left: 5px;
`
export default IconDiv

View File

@ -17,11 +17,11 @@ const Table = styled.table`
}
td:first-child {
width: 70%;
width: 50%;
}
td:last-child {
width: 10%;
width: 20%;
}

View File

@ -11,6 +11,7 @@ import Icon from "../../components/other/icon"
import Table from "../../components/user/table"
import UploadModal from "../../components/user/modals/upload"
import CreateFolderModal from "../../components/user/modals/create-folder"
import IconDiv from "../../components/other/icon-div"
export default function Files() {
const [cookies] = useCookies(["token"])
@ -54,26 +55,30 @@ export default function Files() {
<title>Files - HomeDisk</title>
</Head>
<MuiLink>
<IconButton
size="large"
edge="start"
color="inherit"
aria-label="logo"
onClick={() => setUploadModal(true)}
>
<CloudUpload />
</IconButton>
<MuiLink sx={{display: "flex"}}>
<IconDiv>
<IconButton
size="large"
edge="start"
color="inherit"
aria-label="logo"
onClick={() => setUploadModal(true)}
>
<CloudUpload />
</IconButton>
</IconDiv>
<IconButton
size="large"
edge="start"
color="inherit"
aria-label="logo"
onClick={() => setCreateFolderModal(true)}
>
<CreateNewFolder />
</IconButton>
<IconDiv>
<IconButton
size="large"
edge="start"
color="inherit"
aria-label="logo"
onClick={() => setCreateFolderModal(true)}
>
<CreateNewFolder />
</IconButton>
</IconDiv>
</MuiLink>
<UploadModal open={uploadModal} setOpen={setUploadModal} path={path} refresh={refreshFolder} />