From b5cab29f47d68914179245e754e77c948db8964f Mon Sep 17 00:00:00 2001 From: lupusA Date: Tue, 3 Oct 2023 10:35:49 +0200 Subject: [PATCH] Minor refactoring --- src/DirectoryObject.jsx | 17 +++++++---------- src/SnapshotsTable.jsx | 10 +++++----- src/css/App.css | 17 +++++------------ src/css/Theme.css | 2 +- 4 files changed, 18 insertions(+), 28 deletions(-) diff --git a/src/DirectoryObject.jsx b/src/DirectoryObject.jsx index 958c849..96512e7 100644 --- a/src/DirectoryObject.jsx +++ b/src/DirectoryObject.jsx @@ -98,7 +98,7 @@ export class DirectoryObject extends Component { } copyPath() { - const el = document.querySelector("#mountedPath"); + const el = document.querySelector(".mounted-path"); if (!el) { return } @@ -125,24 +125,21 @@ export class DirectoryObject extends Component { {this.state.mountInfo.path ? <> {window.kopiaUI && <> -   } -   - + + : <> - + }   -   - You can mount/restore all the files & directories that you see below or restore files - individually. + You can mount/restore all the files & directories that you see below or restore files individually.   diff --git a/src/SnapshotsTable.jsx b/src/SnapshotsTable.jsx index ed83749..18e3184 100644 --- a/src/SnapshotsTable.jsx +++ b/src/SnapshotsTable.jsx @@ -457,7 +457,7 @@ export class SnapshotsTable extends Component { - + @@ -479,8 +479,8 @@ export class SnapshotsTable extends Component { {this.state.savingSnapshot && } - - {this.state.originalSnapshotDescription && } + + {this.state.originalSnapshotDescription && } @@ -502,8 +502,8 @@ export class SnapshotsTable extends Component { {this.state.savingSnapshot && } - - {this.state.originalPinName && } + + {this.state.originalPinName && } diff --git a/src/css/App.css b/src/css/App.css index 3a94164..86f57a9 100644 --- a/src/css/App.css +++ b/src/css/App.css @@ -280,7 +280,7 @@ div.tab-body { #kopia .version-info { padding-left: 10px; - color: #aaa; + color: var(--color-text-body); font-size: 80%; } @@ -291,13 +291,11 @@ div.tab-body { background-color: var(--background-color); } -#mountedPath { - color: #444; +#kopia .mounted-path { width: 30em; - background-color: #ccc; - font-size: 12pt; - padding: 4px; - border: 1px solid #aaa; + display: inline; + color: var(--color-text-body); + background-color: var(--background-color); } .logs-table { @@ -432,8 +430,3 @@ div.tab-body { color: var(--color-badge-warning); } -.log-parameter { - color: #000080; - font-weight: bold; - padding-right: 10px; -} \ No newline at end of file diff --git a/src/css/Theme.css b/src/css/Theme.css index 330bf0e..4d179b5 100644 --- a/src/css/Theme.css +++ b/src/css/Theme.css @@ -33,7 +33,7 @@ --color-success: #0d9aab; --color-submit: #00B4D8; --color-select: #2c2c2c; - --color-link: #6a8ec6; + --color-link: #799bd1; --color-text: #cfcfcf; --color-text-body: #cfcfcf;