From 1dcf7250ba6c924598e97cbef57d92cde5269370 Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Sat, 11 Jun 2022 10:46:25 +0200 Subject: [PATCH] update --- README.md | 12 ++++---- website/components/other/icon-div.tsx | 8 +++++ website/components/user/table.tsx | 4 +-- website/pages/user/files.tsx | 43 +++++++++++++++------------ 4 files changed, 40 insertions(+), 27 deletions(-) create mode 100644 website/components/other/icon-div.tsx diff --git a/README.md b/README.md index fd663c9..fff4375 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/website/components/other/icon-div.tsx b/website/components/other/icon-div.tsx new file mode 100644 index 0000000..80583c8 --- /dev/null +++ b/website/components/other/icon-div.tsx @@ -0,0 +1,8 @@ +import styled from "styled-components" + +const IconDiv = styled.div` + padding-right: 5px; + padding-left: 5px; +` + +export default IconDiv diff --git a/website/components/user/table.tsx b/website/components/user/table.tsx index 735ec6b..86299dd 100644 --- a/website/components/user/table.tsx +++ b/website/components/user/table.tsx @@ -17,11 +17,11 @@ const Table = styled.table` } td:first-child { - width: 70%; + width: 50%; } td:last-child { - width: 10%; + width: 20%; } diff --git a/website/pages/user/files.tsx b/website/pages/user/files.tsx index 600d204..7df924d 100644 --- a/website/pages/user/files.tsx +++ b/website/pages/user/files.tsx @@ -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() { Files - HomeDisk - - setUploadModal(true)} - > - - + + + setUploadModal(true)} + > + + + - setCreateFolderModal(true)} - > - - + + setCreateFolderModal(true)} + > + + +