diff --git a/configs/dev.yml b/configs/dev.yml index d3e66f2..8a2d5a0 100644 --- a/configs/dev.yml +++ b/configs/dev.yml @@ -8,7 +8,7 @@ server: debug: true host: "127.0.0.1" port: 8686 - readTimeout: 2000 + readTimeout: 4000 writerTimeout: 86400000 # 1 day maxHeaderBytes: 512 publicPath: "public" diff --git a/public/static/css/style.css b/public/static/css/style.css index 8a6e609..788604c 100644 --- a/public/static/css/style.css +++ b/public/static/css/style.css @@ -725,3 +725,9 @@ div.hr { overflow-wrap: break-word; display: block; } + +.alert-red { + border: dashed 1px #e74c3c; + color: #e74c3c; + border-radius: 0.5rem; +} \ 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 3184b36..91472ee 100644 --- a/src/client/web/src/components/browser.tsx +++ b/src/client/web/src/components/browser.tsx @@ -33,7 +33,7 @@ export interface BrowserProps { dirPath: List; isSharing: boolean; items: List; - uploadings: List; + uploadings: List; sharings: List; uploadFiles: List; @@ -328,9 +328,8 @@ export class Browser extends React.Component { } ); - const nameCellClass = `item-name item-name-${ - this.props.browser.isVertical ? "vertical" : "horizontal" - } pointer`; + const nameCellClass = `item-name item-name-${this.props.browser.isVertical ? "vertical" : "horizontal" + } pointer`; const sizeCellClass = this.props.browser.isVertical ? `hidden margin-s` : ``; @@ -422,9 +421,8 @@ export class Browser extends React.Component { - - , - ])} - childrenStyles={List([{}, { justifyContent: "flex-end" }])} - /> +
+ + +
, + ])} + childrenStyles={List([{}, { justifyContent: "flex-end" }])} + /> + {uploading.err.trim() === "" ? null : ( +
+ + {uploading.err.trim()} + +
+ )} + ); } ); @@ -668,7 +673,7 @@ export class Browser extends React.Component { /> ) : ( -
+
@@ -721,9 +726,8 @@ export class Browser extends React.Component { type="text" readOnly className="margin-r-m" - value={`${ - document.location.href.split("?")[0] - }?dir=${encodeURIComponent(dirPath)}`} + value={`${document.location.href.split("?")[0] + }?dir=${encodeURIComponent(dirPath)}`} />