use the small thumbnails on tracklists

This commit is contained in:
geoffrey45
2022-09-17 17:37:09 +03:00
parent 5130f85300
commit 5af3d9cfc3
7 changed files with 17 additions and 11 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
disableSidebar: !settings.use_sidebar,
extendWidth: settings.extend_width && settings.extend_width_enabled,
isSmall: !xl,
addBorderRight: xxl,
addBorderRight: xxl && !settings.extend_width,
}"
>
<LeftSidebar />
+1 -1
View File
@@ -11,7 +11,7 @@
}"
>
<div class="big-img noscroll" :class="{ imgSmall: widthIsSmall }">
<img :src="imguri.thumb + album.image" class="rounded" />
<img :src="imguri.thumb.large + album.image" class="rounded" />
</div>
<div
class="info"
+1 -1
View File
@@ -43,7 +43,7 @@ const props = defineProps<{
track: Track | null;
}>();
const imguri = paths.images.thumb;
const imguri = paths.images.thumb.large;
</script>
<style lang="scss">
@@ -2,7 +2,7 @@
<div class="b-bar bg-primary pad-medium rounded" v-if="settings.show_alt_np">
<div class="info">
<img
:src="paths.images.thumb + queue.currenttrack?.image"
:src="paths.images.thumb.large + queue.currenttrack?.image"
alt=""
class="rounded shadow-lg"
/>
@@ -26,7 +26,7 @@
<span class="current">{{ formatSeconds(queue.duration.current) }}</span>
<HotKeys />
<span class="full">{{
formatSeconds(queue.currenttrack ? queue.currenttrack.length : 0)
formatSeconds(queue.currenttrack ? queue.currenttrack.duration : 0)
}}</span>
</div>
</div>
+1 -1
View File
@@ -75,7 +75,7 @@ import { formatSeconds } from "@/utils";
import ArtistName from "./ArtistName.vue";
const context_on = ref(false);
const imguri = paths.images.thumb;
const imguri = paths.images.thumb.small;
const options_button_clicked = ref(false);
const artisttitle = ref<HTMLElement | null>(null);
+1 -1
View File
@@ -11,7 +11,7 @@
@contextmenu.prevent="showMenu"
>
<div class="album-art">
<img :src="paths.images.thumb + track.image" alt="" class="rounded-sm" />
<img :src="paths.images.thumb.small + track.image" alt="" class="rounded-sm" />
<div
class="now-playing-track-indicator image"
v-if="isCurrent"
+10 -4
View File
@@ -1,5 +1,5 @@
// "local" | "remote"
let mode = "remote";
let mode = "local";
export interface D<T = string> {
[key: string]: T;
@@ -16,7 +16,10 @@ const ports = {
};
const imageRoutes = {
thumb: "/t/",
thumb: {
large: "/t/",
small: "/t/s/",
},
artist: "/a/",
playlist: "/p/",
raw: "/raw/",
@@ -72,7 +75,10 @@ const paths = {
files: baseApiUrl + "/file",
},
images: {
thumb: baseImgUrl + imageRoutes.thumb,
thumb: {
small: baseImgUrl + imageRoutes.thumb.small,
large: baseImgUrl + imageRoutes.thumb.large,
},
artist: baseImgUrl + imageRoutes.artist,
playlist: baseImgUrl + imageRoutes.playlist,
raw: baseImgUrl + imageRoutes.raw,
@@ -81,4 +87,4 @@ const paths = {
export { paths, toggleMode };
// TODO: Add setting to toggle between extending to edges or not
// TODO: Add setting to toggle between extending to edges or not