Small tweaks 2 (#310)

This commit is contained in:
Graham Steffaniak 2025-01-25 19:59:18 -05:00 committed by GitHub
parent c168599c91
commit 7f9e6ac184
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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;
},