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 >
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,
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 >
9098</template >
9199
92100<script setup lang="ts">
93- import { ref } from " vue" ;
94- import { storeToRefs } from " pinia" ;
95101import { Routes } from " @/router" ;
102+ import { storeToRefs } from " pinia" ;
103+ import { ref } from " vue" ;
96104
97105import { paths } from " @/config" ;
98106import 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" ;
110117import { 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" ;
112122import HeartSvg from " ../shared/HeartSvg.vue" ;
113123import PlayBtnRect from " ../shared/PlayBtnRect.vue" ;
114- import favoriteHandler from " @/composables/favoriteHandler" ;
115- import ArtistName from " @/components/shared/ArtistName.vue" ;
116124
117125const albumheaderthing = ref <any >(null );
118126const 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 }
0 commit comments