From dab87ae97ed26f528848628e6a73fcfdc0332262 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Sun, 10 Sep 2023 17:10:38 +0800 Subject: [PATCH] Improve file bar --- web/src/FileTree.js | 48 +++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/web/src/FileTree.js b/web/src/FileTree.js index e16ce0c..cff37f5 100644 --- a/web/src/FileTree.js +++ b/web/src/FileTree.js @@ -811,30 +811,40 @@ class FileTree extends React.Component { {file.title} - - {Setting.getExtFromFile(file)} - + { + !Conf.EnableExtraPages ? null : ( + + {Setting.getExtFromFile(file)} + + ) + } {Setting.getFriendlyFileSize(file.size)} {Setting.getFormattedDate(file.createdTime)} - - {Setting.getFormattedDate(Setting.getCollectedTime(file.title))} - { - this.setPropertyValue(file, "collectedTime", value.format()); - }} onOk={(value) => {}} /> - - - - + { + !Conf.EnableExtraPages ? null : ( + + + {Setting.getFormattedDate(Setting.getCollectedTime(file.title))} + { + this.setPropertyValue(file, "collectedTime", value.format()); + }} onOk={(value) => {}} /> + + + + + + ) + } ); @@ -847,7 +857,7 @@ class FileTree extends React.Component { filePaneHeight = 0; } - return `calc(100vh - ${filePaneHeight + 186}px)`; + return `calc(100vh - ${filePaneHeight + 186 - (Conf.EnableExtraPages ? 0 : 50)}px)`; } render() {