File tree Expand file tree Collapse file tree 3 files changed +27
-22
lines changed Expand file tree Collapse file tree 3 files changed +27
-22
lines changed Original file line number Diff line number Diff line change 109
109
@scroll =" handleVirtualScroll"
110
110
>
111
111
<template #default =" { item , index } " >
112
- <div class =" double-item" >
113
- <song-item
114
- :index =" index"
115
- :compact =" isCompactLayout"
116
- :item =" formatSong(item)"
117
- @play =" handlePlay"
118
- :style =" {paddingBottom: index === filteredSongs.length - 1 ? '100px' : '0'}"
119
- />
112
+ <div >
113
+ <div class =" double-item" >
114
+ <song-item
115
+ :index =" index"
116
+ :compact =" isCompactLayout"
117
+ :item =" formatSong(item)"
118
+ @play =" handlePlay"
119
+ />
120
+ </div >
121
+ <div v-if =" index === filteredSongs.length - 1" class =" h-36" ></div >
120
122
</div >
121
123
</template >
122
124
</n-virtual-list >
Original file line number Diff line number Diff line change 168
168
@scroll =" handleVirtualScroll"
169
169
>
170
170
<template #default =" { item , index } " >
171
- <div class =" double-item" >
172
- <song-item
173
- :index =" index"
174
- :compact =" isCompactLayout"
175
- :item =" formatSong(item)"
176
- :can-remove =" canRemove"
177
- :selectable =" isSelecting"
178
- :selected =" selectedSongs.includes(item.id as number)"
179
- @play =" handlePlay"
180
- @remove-song =" handleRemoveSong"
181
- @select =" (id, selected) => handleSelect(id, selected)"
182
- :style =" {paddingBottom: index === filteredSongs.length - 1 ? '100px' : '0'}"
183
- />
171
+ <div >
172
+ <div class =" double-item" >
173
+ <song-item
174
+ :index =" index"
175
+ :compact =" isCompactLayout"
176
+ :item =" formatSong(item)"
177
+ :can-remove =" canRemove"
178
+ :selectable =" isSelecting"
179
+ :selected =" selectedSongs.includes(item.id as number)"
180
+ @play =" handlePlay"
181
+ @remove-song =" handleRemoveSong"
182
+ @select =" (id, selected) => handleSelect(id, selected)"
183
+ />
184
+ </div >
185
+ <div v-if =" index === filteredSongs.length - 1" class =" h-36" ></div >
184
186
</div >
185
187
</template >
186
188
</n-virtual-list >
Original file line number Diff line number Diff line change 47
47
/>
48
48
<div class =" play-list-item-info" >
49
49
<div class =" play-list-item-name" >
50
- {{ item.name }}
50
+ < n-ellipsis :line-clamp = " 1 " > {{ item.name }}</ n-ellipsis >
51
51
<div v-if =" item.creator.userId === user.userId" class =" playlist-creator-tag" >
52
52
{{ t('user.playlist.mine') }}
53
53
</div >
@@ -396,6 +396,7 @@ const isLoggedIn = computed(() => userStore.user);
396
396
height : 18px ;
397
397
font-size : 10px ;
398
398
font-weight : 500 ;
399
+ min-width : 60px ;
399
400
backdrop-filter : blur (4px );
400
401
-webkit-backdrop-filter : blur (4px );
401
402
}
You can’t perform that action at this time.
0 commit comments