From a17d6a9210a0714d91f9f5ccb108886053889137 Mon Sep 17 00:00:00 2001 From: inalone Date: Sat, 12 Nov 2022 22:18:46 +0000 Subject: Moved directory button to footer --- src/web/src/components/App.css | 5 ----- src/web/src/components/Search/Response.js | 7 +++++-- src/web/src/components/Shared/FileList.js | 17 ++++++++--------- 3 files changed, 13 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/web/src/components/App.css b/src/web/src/components/App.css index e5862c75..78b029b8 100644 --- a/src/web/src/components/App.css +++ b/src/web/src/components/App.css @@ -80,11 +80,6 @@ body { width: 65px; } -.getfulldirectory-button { - padding: 10px !important; - margin-left: 5px !important; -} - .showmore-button { padding: 20px !important; max-width: 1200px !important; diff --git a/src/web/src/components/Search/Response.js b/src/web/src/components/Search/Response.js index 239ab272..fc3cb400 100644 --- a/src/web/src/components/Search/Response.js +++ b/src/web/src/components/Search/Response.js @@ -120,8 +120,11 @@ class Response extends Component { files={tree[dir]} disabled={downloadRequest === 'inProgress'} onSelectionChange={this.onFileSelectionChange} - getFullDirectory={this.getFullDirectory} - username={response.username} + footer={} /> )} diff --git a/src/web/src/components/Shared/FileList.js b/src/web/src/components/Shared/FileList.js index bcbebee9..3e171baf 100644 --- a/src/web/src/components/Shared/FileList.js +++ b/src/web/src/components/Shared/FileList.js @@ -3,7 +3,6 @@ import React, { useState } from 'react'; import { formatSeconds, formatBytes, getFileName, formatAttributes } from '../../lib/util'; import { - Button, Header, Table, Icon, @@ -19,8 +18,7 @@ const FileList = ({ onSelectionChange, disabled, onClose, - getFullDirectory, - username, + footer, }) => { const [folded, setFolded] = useState(false); @@ -38,12 +36,6 @@ const FileList = ({ onClick={() => !locked && setFolded(!folded)}/> {directoryName} - {onSelectionChange && - - } - {!!onClose && )} + {footer && + + + {footer} + + + } } -- cgit v1.2.3