mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
UI improvements
This commit is contained in:
@@ -12,24 +12,6 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
margin: $small auto;
|
margin: $small auto;
|
||||||
|
|
||||||
// @include for-desktop-down {
|
|
||||||
// grid-template-columns: min-content 1fr 26rem;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// @include tablet-landscape {
|
|
||||||
// grid-template-columns: min-content 1fr;
|
|
||||||
// grid-template-areas:
|
|
||||||
// "l-sidebar nav"
|
|
||||||
// "l-sidebar content"
|
|
||||||
// "l-sidebar content"
|
|
||||||
// "l-sidebar content";
|
|
||||||
// .r-sidebar,
|
|
||||||
// #tabs,
|
|
||||||
// #gsearch-input {
|
|
||||||
// display: none;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#app-grid.isSmall {
|
#app-grid.isSmall {
|
||||||
@@ -72,14 +54,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#app-grid.isSmall #acontent {
|
#app-grid.isSmall,
|
||||||
margin-right: -$small;
|
#app-grid.disableSidebar {
|
||||||
padding-right: calc($small - 1px);
|
#acontent {
|
||||||
}
|
margin-right: -$small;
|
||||||
|
padding-right: calc($small - 1px);
|
||||||
|
|
||||||
#app-grid.disableSidebar #acontent {
|
.search-view {
|
||||||
margin-right: -$small;
|
margin-right: -0.8rem;
|
||||||
padding-right: calc($small - 1px);
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabs {
|
#tabs {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Styles that only apply on our dear Firefox
|
// Styles that only apply to our dear Firefox
|
||||||
|
|
||||||
@-moz-document url-prefix() {
|
@-moz-document url-prefix() {
|
||||||
#acontent {
|
#acontent {
|
||||||
@@ -6,20 +6,22 @@
|
|||||||
padding-right: 1rem;
|
padding-right: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#app-grid.isSmall #acontent {
|
#app-grid.isSmall,
|
||||||
margin-right: -$small;
|
#app-grid.disableSidebar {
|
||||||
padding-right: $medium;
|
#acontent {
|
||||||
|
margin-right: -$small;
|
||||||
|
padding-right: $medium;
|
||||||
|
|
||||||
|
.search-view {
|
||||||
|
margin-right: -0.8rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#app-grid.isSmall #page-search {
|
#app-grid.isSmall #page-search {
|
||||||
margin-right: $smaller;
|
margin-right: $smaller;
|
||||||
}
|
}
|
||||||
|
|
||||||
#app-grid.disableSidebar #acontent {
|
|
||||||
margin-right: -$small;
|
|
||||||
padding-right: $medium;
|
|
||||||
}
|
|
||||||
|
|
||||||
#app-grid.disableSidebar #page-search {
|
#app-grid.disableSidebar #page-search {
|
||||||
margin-right: $smaller;
|
margin-right: $smaller;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,10 +65,6 @@ const props = defineProps<{
|
|||||||
copyright?: string | null;
|
copyright?: string | null;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
// onUpdated(() => {
|
|
||||||
// console.log(props.tracks[1].index);
|
|
||||||
// });
|
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: "playFromPage", index: number): void;
|
(e: "playFromPage", index: number): void;
|
||||||
}>();
|
}>();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<div class="hotkeys rounded noscroll">
|
<div class="hotkeys rounded-sm noscroll">
|
||||||
<div class="image ctrl-btn" id="previous" @click="q.playPrev"></div>
|
<div class="image ctrl-btn" id="previous" @click="q.playPrev"></div>
|
||||||
<div
|
<div
|
||||||
class="image ctrl-btn play-pause"
|
class="image ctrl-btn play-pause"
|
||||||
|
|||||||
@@ -10,14 +10,14 @@
|
|||||||
<div class="np-artist ellip">
|
<div class="np-artist ellip">
|
||||||
<span
|
<span
|
||||||
v-for="artist in putCommas(
|
v-for="artist in putCommas(
|
||||||
queue.currenttrack?.artists || ['Artist']
|
queue.currenttrack?.artists || ['♥ Hello ♥']
|
||||||
)"
|
)"
|
||||||
>
|
>
|
||||||
{{ artist }}
|
{{ artist }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="np-title ellip">
|
<div class="np-title ellip">
|
||||||
{{ queue.currenttrack?.title || "Track title" }}
|
{{ queue.currenttrack?.title || "Play something"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -25,7 +25,9 @@
|
|||||||
<div class="time">
|
<div class="time">
|
||||||
<span class="current">{{ formatSeconds(queue.duration.current) }}</span>
|
<span class="current">{{ formatSeconds(queue.duration.current) }}</span>
|
||||||
<HotKeys />
|
<HotKeys />
|
||||||
<span class="full">{{ formatSeconds(queue.currenttrack.length) }}</span>
|
<span class="full">{{
|
||||||
|
formatSeconds(queue.currenttrack ? queue.currenttrack.length : 0)
|
||||||
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
:alt="true"
|
:alt="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="t-center"><h5>🤷</h5></div>
|
<div v-else class="t-center"><h5>💔 No results 💔</h5></div>
|
||||||
<LoadMore
|
<LoadMore
|
||||||
v-if="album_grid && search.albums.more"
|
v-if="album_grid && search.albums.more"
|
||||||
:loader="search.loadAlbums"
|
:loader="search.loadAlbums"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
:index="index + 1"
|
:index="index + 1"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="t-center"><h5>🤷</h5></div>
|
<div v-else class="t-center"><h5>💔 No results 💔</h5></div>
|
||||||
<LoadMore v-if="search.tracks.more" :loader="search.loadTracks" />
|
<LoadMore v-if="search.tracks.more" :loader="search.loadTracks" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function scrollOnLoad() {
|
|||||||
export default defineStore("search", () => {
|
export default defineStore("search", () => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const query = ref("");
|
const query = ref("");
|
||||||
const debouncedQuery = useDebounce(query)
|
const debouncedQuery = useDebounce(query);
|
||||||
const { startLoading, stopLoading } = useLoaderStore();
|
const { startLoading, stopLoading } = useLoaderStore();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
@@ -144,7 +144,11 @@ export default defineStore("search", () => {
|
|||||||
artists.more = res.more;
|
artists.more = res.more;
|
||||||
})
|
})
|
||||||
.then(() => stopLoading())
|
.then(() => stopLoading())
|
||||||
.then(() => scrollOnLoad());
|
.then(() =>
|
||||||
|
setTimeout(() => {
|
||||||
|
scrollOnLoad();
|
||||||
|
}, 500)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ import Main from "@/components/RightSideBar/Search/Main.vue";
|
|||||||
|
|
||||||
#tracks-results {
|
#tracks-results {
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
// margin-left: -2.25rem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user