mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
use the small thumbnails on tracklists
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
disableSidebar: !settings.use_sidebar,
|
disableSidebar: !settings.use_sidebar,
|
||||||
extendWidth: settings.extend_width && settings.extend_width_enabled,
|
extendWidth: settings.extend_width && settings.extend_width_enabled,
|
||||||
isSmall: !xl,
|
isSmall: !xl,
|
||||||
addBorderRight: xxl,
|
addBorderRight: xxl && !settings.extend_width,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<LeftSidebar />
|
<LeftSidebar />
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<div class="big-img noscroll" :class="{ imgSmall: widthIsSmall }">
|
<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>
|
||||||
<div
|
<div
|
||||||
class="info"
|
class="info"
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const props = defineProps<{
|
|||||||
track: Track | null;
|
track: Track | null;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const imguri = paths.images.thumb;
|
const imguri = paths.images.thumb.large;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="b-bar bg-primary pad-medium rounded" v-if="settings.show_alt_np">
|
<div class="b-bar bg-primary pad-medium rounded" v-if="settings.show_alt_np">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<img
|
<img
|
||||||
:src="paths.images.thumb + queue.currenttrack?.image"
|
:src="paths.images.thumb.large + queue.currenttrack?.image"
|
||||||
alt=""
|
alt=""
|
||||||
class="rounded shadow-lg"
|
class="rounded shadow-lg"
|
||||||
/>
|
/>
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<span class="current">{{ formatSeconds(queue.duration.current) }}</span>
|
<span class="current">{{ formatSeconds(queue.duration.current) }}</span>
|
||||||
<HotKeys />
|
<HotKeys />
|
||||||
<span class="full">{{
|
<span class="full">{{
|
||||||
formatSeconds(queue.currenttrack ? queue.currenttrack.length : 0)
|
formatSeconds(queue.currenttrack ? queue.currenttrack.duration : 0)
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ import { formatSeconds } from "@/utils";
|
|||||||
import ArtistName from "./ArtistName.vue";
|
import ArtistName from "./ArtistName.vue";
|
||||||
|
|
||||||
const context_on = ref(false);
|
const context_on = ref(false);
|
||||||
const imguri = paths.images.thumb;
|
const imguri = paths.images.thumb.small;
|
||||||
const options_button_clicked = ref(false);
|
const options_button_clicked = ref(false);
|
||||||
|
|
||||||
const artisttitle = ref<HTMLElement | null>(null);
|
const artisttitle = ref<HTMLElement | null>(null);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
@contextmenu.prevent="showMenu"
|
@contextmenu.prevent="showMenu"
|
||||||
>
|
>
|
||||||
<div class="album-art">
|
<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
|
<div
|
||||||
class="now-playing-track-indicator image"
|
class="now-playing-track-indicator image"
|
||||||
v-if="isCurrent"
|
v-if="isCurrent"
|
||||||
|
|||||||
+10
-4
@@ -1,5 +1,5 @@
|
|||||||
// "local" | "remote"
|
// "local" | "remote"
|
||||||
let mode = "remote";
|
let mode = "local";
|
||||||
|
|
||||||
export interface D<T = string> {
|
export interface D<T = string> {
|
||||||
[key: string]: T;
|
[key: string]: T;
|
||||||
@@ -16,7 +16,10 @@ const ports = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const imageRoutes = {
|
const imageRoutes = {
|
||||||
thumb: "/t/",
|
thumb: {
|
||||||
|
large: "/t/",
|
||||||
|
small: "/t/s/",
|
||||||
|
},
|
||||||
artist: "/a/",
|
artist: "/a/",
|
||||||
playlist: "/p/",
|
playlist: "/p/",
|
||||||
raw: "/raw/",
|
raw: "/raw/",
|
||||||
@@ -72,7 +75,10 @@ const paths = {
|
|||||||
files: baseApiUrl + "/file",
|
files: baseApiUrl + "/file",
|
||||||
},
|
},
|
||||||
images: {
|
images: {
|
||||||
thumb: baseImgUrl + imageRoutes.thumb,
|
thumb: {
|
||||||
|
small: baseImgUrl + imageRoutes.thumb.small,
|
||||||
|
large: baseImgUrl + imageRoutes.thumb.large,
|
||||||
|
},
|
||||||
artist: baseImgUrl + imageRoutes.artist,
|
artist: baseImgUrl + imageRoutes.artist,
|
||||||
playlist: baseImgUrl + imageRoutes.playlist,
|
playlist: baseImgUrl + imageRoutes.playlist,
|
||||||
raw: baseImgUrl + imageRoutes.raw,
|
raw: baseImgUrl + imageRoutes.raw,
|
||||||
@@ -81,4 +87,4 @@ const paths = {
|
|||||||
|
|
||||||
export { paths, toggleMode };
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user