From 7f9e6ac184f9f10955a5dd5e640e1b1f6a3e3ade Mon Sep 17 00:00:00 2001 From: Graham Steffaniak <42989099+gtsteffaniak@users.noreply.github.com> Date: Sat, 25 Jan 2025 19:59:18 -0500 Subject: [PATCH] Small tweaks 2 (#310) --- frontend/src/css/fonts.css | 2 +- frontend/src/store/getters.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/css/fonts.css b/frontend/src/css/fonts.css index 63248b2d..7c428870 100644 --- a/frontend/src/css/fonts.css +++ b/frontend/src/css/fonts.css @@ -179,7 +179,7 @@ font-family: 'Material Symbols Outlined'; font-style: normal; font-weight: 400; - src: url(../assets/fonts/material/symbols-outlined.woff2) format('woff'); + src: url(../assets/fonts/material/symbols-outlined.woff) format('woff'); } .material-icons { diff --git a/frontend/src/store/getters.js b/frontend/src/store/getters.js index a036ea08..9a9051ce 100644 --- a/frontend/src/store/getters.js +++ b/frontend/src/store/getters.js @@ -45,6 +45,9 @@ export const getters = { getFirstSelected: () => state.req.items[state.selected[0]], isSingleFileSelected: () => getters.selectedCount() === 1 && getters.getFirstSelected()?.type != "directory", selectedDownloadUrl() { + if (state.isSearchActive) { + return state.selected[0].url; + } let selectedItem = state.selected[0] return state.req.items[selectedItem].url; },