Skip to content

Commit cbb7b2b

Browse files
committed
Merge branch 'add-drag,-drop-and-reorder'
2 parents 534e163 + f6e135a commit cbb7b2b

File tree

25 files changed

+154
-70
lines changed

25 files changed

+154
-70
lines changed

src/components/AlbumView/ArtistAlbums.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ defineProps<{
5353
h3 {
5454
display: grid;
5555
grid-template-columns: 1fr max-content;
56-
align-items: center;
56+
align-items: baseline;
5757
padding: 0 $medium;
5858
margin-bottom: $small;
5959
}

src/components/AlbumView/Header.vue

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33
class="album-header-ambient rounded"
44
style="height: 100%; width: 100%"
55
:style="{
6-
boxShadow: album.colors[0] ? `0 .5rem 2rem ${album.colors[0]}` : '0 .5rem 2rem black',
6+
boxShadow: album.colors[0]
7+
? `0 .5rem 2rem ${album.colors[0]}`
8+
: '0 .5rem 2rem black',
79
}"
810
></div>
911
<div
1012
class="a-header rounded"
1113
ref="albumheaderthing"
1214
:style="{
13-
backgroundColor: album.colors[0] ? getBackgroundColor(album.colors[0]) : '',
15+
backgroundColor: album.colors[0]
16+
? getBackgroundColor(album.colors[0])
17+
: '',
1418
height: `${heightLarge ? '24rem' : '18rem'}`,
1519
}"
1620
>
@@ -59,7 +63,7 @@
5963
</div>
6064
<Motion
6165
class="art"
62-
v-if="!isMedium"
66+
v-if="!isMedium && !isSmall"
6367
:initial="{ opacity: 0, x: 10 }"
6468
:animate="{
6569
opacity: 1,
@@ -78,10 +82,14 @@
7882
>
7983
<img
8084
:src="imguri.artist.small + a.image"
81-
class="shadow-lg circular"
85+
class="circular"
8286
loading="lazy"
8387
:title="a.name"
84-
:style="{ border: `solid 2px ${album.colors[0]}` }"
88+
:style="{
89+
border: `solid 4px ${
90+
album.colors[0] ? getBackgroundColor(album.colors[0]) : ''
91+
}`,
92+
}"
8593
/>
8694
</RouterLink>
8795
</Motion>
@@ -90,9 +98,9 @@
9098
</template>
9199

92100
<script setup lang="ts">
93-
import { ref } from "vue";
94-
import { storeToRefs } from "pinia";
95101
import { Routes } from "@/router";
102+
import { storeToRefs } from "pinia";
103+
import { ref } from "vue";
96104
97105
import { paths } from "@/config";
98106
import useNavStore from "@/stores/nav";
@@ -101,18 +109,18 @@ import {
101109
albumHeaderSmall,
102110
heightLarge,
103111
isMedium,
112+
isSmall,
104113
} from "@/stores/content-width";
105114
106-
import { getTextColor, getBackgroundColor } from "@/utils/colortools/shift";
115+
import { getBackgroundColor, getTextColor } from "@/utils/colortools/shift";
107116
108-
import { isLight } from "@/composables/colors/album";
109-
import { formatSeconds, useVisibility } from "@/utils";
110117
import { favType, playSources } from "@/composables/enums";
118+
import { formatSeconds, useVisibility } from "@/utils";
111119
120+
import ArtistName from "@/components/shared/ArtistName.vue";
121+
import favoriteHandler from "@/composables/favoriteHandler";
112122
import HeartSvg from "../shared/HeartSvg.vue";
113123
import PlayBtnRect from "../shared/PlayBtnRect.vue";
114-
import favoriteHandler from "@/composables/favoriteHandler";
115-
import ArtistName from "@/components/shared/ArtistName.vue";
116124
117125
const albumheaderthing = ref<any>(null);
118126
const imguri = paths.images;
@@ -219,9 +227,14 @@ function handleFav() {
219227
max-width: 10rem;
220228
flex-wrap: wrap;
221229
230+
.shadow-inset {
231+
height: max-content;
232+
}
233+
222234
img {
223235
height: 3rem;
224236
background-color: $gray;
237+
margin-left: -1.5rem;
225238
}
226239
227240
a {
@@ -230,7 +243,10 @@ function handleFav() {
230243
231244
a:hover {
232245
img {
233-
border: solid 2px white !important;
246+
z-index: 100;
247+
border-color: $pink !important;
248+
// margin-right: 1.5rem;
249+
// border: solid 2px white !important;
234250
}
235251
}
236252
}

src/components/ArtistView/TopTracks.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ defineProps<{
3939
4040
.section-title {
4141
margin-left: 0;
42+
align-items: baseline;
4243
}
4344
4445
.error {

src/components/BottomBar/Left.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@
3434
"
3535
class="artist"
3636
/>
37-
<div v-tooltip class="title ellip">
38-
{{ queue.currenttrack?.title || "Hello there" }}
37+
<div v-tooltip class="title">
38+
<span class="ellip">
39+
{{ queue.currenttrack?.title || "Hello there" }}
40+
</span>
41+
<MasterFlag :bitrate="queue.currenttrack?.bitrate || 0" />
3942
</div>
4043
</div>
4144
</div>
@@ -51,6 +54,7 @@ import useColorStore from "@/stores/colors";
5154
import useSettingsStore from "@/stores/settings";
5255
import useQStore from "@/stores/queue";
5356
import HeartSvg from "../shared/HeartSvg.vue";
57+
import MasterFlag from "../shared/MasterFlag.vue";
5458
5559
const queue = useQStore();
5660
const settings = useSettingsStore();
@@ -96,6 +100,8 @@ const emit = defineEmits<{
96100
.title {
97101
color: $white;
98102
font-weight: bold;
103+
display: flex;
104+
align-items: center;
99105
}
100106
}
101107
}

src/components/LeftSidebar/NP/SongCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}"
1010
:exit="{ opacity: 0, scale: 0.9 }"
1111
>
12-
<div class="sidebar-songcard rounded" v-wave>
12+
<div class="sidebar-songcard rounded-sm" v-wave>
1313
<router-link
1414
:to="{
1515
name: 'AlbumView',
@@ -21,7 +21,7 @@
2121
<img
2222
:src="imguri + q.currenttrack?.image"
2323
alt=""
24-
class="l-image rounded force-lm"
24+
class="l-image rounded-sm force-lm"
2525
/>
2626
</router-link>
2727
<div

src/components/PlaylistView/ArtistsList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ defineProps<{
3636
display: flex;
3737
justify-content: space-between;
3838
padding-left: $medium;
39-
align-items: center;
39+
align-items: baseline;
4040
margin-bottom: $small;
4141
}
4242

src/components/SettingsView/Content.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defineProps<{
2020
<style lang="scss">
2121
.settingscontent {
2222
width: 100%;
23-
// max-width: 40rem;
2423
margin: 0 auto;
24+
padding-bottom: 2rem;
2525
}
2626
</style>

src/components/SettingsView/Group.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
<Switch
2727
v-if="setting.type == SettingType.binary"
2828
@click="setting.action()"
29-
:state="setting.source && setting.source()"
29+
:state="setting.state && setting.state()"
3030
/>
3131
<Select
3232
v-if="setting.type === SettingType.select"
3333
:options="setting.options"
34-
:source="setting.source !== null ? setting.source : () => ''"
34+
:source="setting.state !== null ? setting.state : () => ''"
3535
:setterFn="setting.action"
3636
/>
3737
<button
@@ -44,7 +44,7 @@
4444

4545
<List
4646
icon="folder"
47-
:items="setting.source !== null ? setting.source() : []"
47+
:items="setting.state !== null ? setting.state() : []"
4848
v-if="setting.type === SettingType.list"
4949
/>
5050
</div>

src/components/nav/Titles/PlaylistsTitle.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const { showNewPlaylistModal } = useModalStore();
1919
.playlists-nav {
2020
display: grid;
2121
grid-template-columns: 1fr max-content;
22+
align-items: center;
2223
2324
button {
2425
padding-right: $small;

src/components/nav/Titles/SearchTitle.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const tabs = ["tracks", "albums", "artists"];
3333
display: grid;
3434
grid-template-columns: 1fr max-content;
3535
gap: 1rem;
36+
3637
3738
.buttons-area {
3839
position: relative;

0 commit comments

Comments
 (0)