From 8905f127ddf3da1c0c170507211077e71906a85d Mon Sep 17 00:00:00 2001 From: hexxa Date: Sat, 28 Aug 2021 20:45:23 +0800 Subject: [PATCH] fix(browser): refine styles --- public/static/css/style.css | 13 +- src/client/web/src/components/browser.tsx | 166 +++++++++++++++------- 2 files changed, 122 insertions(+), 57 deletions(-) diff --git a/public/static/css/style.css b/public/static/css/style.css index 129f395..8a6e609 100644 --- a/public/static/css/style.css +++ b/public/static/css/style.css @@ -1,5 +1,14 @@ body button { font-size: 1.2rem; + color: #697384; + background-color: #ecf0f6; +} + +body input { + font-size: 1.2rem; + color: #697384; + background-color: #ecf0f6; + border: solid 1px #95a5a6; } #bg { @@ -128,7 +137,7 @@ body button { width: 100%; color: #34495e; font-size: 1.4rem; - line-height: 5rem; + /* line-height: 5rem; */ background-color: white; border-radius: 0.8rem; margin-bottom: 2rem; @@ -715,4 +724,4 @@ div.hr { text-overflow: ellipsis; overflow-wrap: break-word; display: block; -} \ No newline at end of file +} diff --git a/src/client/web/src/components/browser.tsx b/src/client/web/src/components/browser.tsx index d54eca4..bc977de 100644 --- a/src/client/web/src/components/browser.tsx +++ b/src/client/web/src/components/browser.tsx @@ -5,6 +5,10 @@ import FileSize from "filesize"; import { RiFolder2Fill } from "@react-icons/all-files/ri/RiFolder2Fill"; import { RiFileList2Fill } from "@react-icons/all-files/ri/RiFileList2Fill"; import { RiFile2Fill } from "@react-icons/all-files/ri/RiFile2Fill"; +import { RiShareBoxLine } from "@react-icons/all-files/ri/RiShareBoxLine"; +import { RiShareForwardBoxFill } from "@react-icons/all-files/ri/RiShareForwardBoxFill"; +import { RiUploadCloudFill } from "@react-icons/all-files/ri/RiUploadCloudFill"; +import { RiUploadCloudLine } from "@react-icons/all-files/ri/RiUploadCloudLine"; import { alertMsg, comfirmMsg } from "../common/env"; import { updater } from "./state_updater"; @@ -413,7 +417,10 @@ export class Browser extends React.Component { , + , @@ -437,7 +444,9 @@ export class Browser extends React.Component { - - - + , + ])} + childrenStyles={List([{}, { justifyContent: "flex-end" }])} + /> ); } ); const sharingList = this.props.browser.sharings.map((dirPath: string) => { return ( -
- - - {dirPath} - - - - - +
+ , + {dirPath}, + ])} + />, + + + + + , + ])} + childrenStyles={List([{}, { justifyContent: "flex-end" }])} + />
); }); @@ -588,11 +618,24 @@ export class Browser extends React.Component {
- - - {this.props.msg.pkg.get("browser.upload.title")} - + + , + + + + {this.props.msg.pkg.get("browser.upload.title")} + + + All files in uploading + + , + ])} + /> , , @@ -607,11 +650,24 @@ export class Browser extends React.Component {
- - - {this.props.msg.pkg.get("browser.share.title")} - + + , + + + + {this.props.msg.pkg.get("browser.share.title")} + + + Sharing Folders + + , + ])} + /> , , @@ -629,7 +685,7 @@ export class Browser extends React.Component { ,