3939 }"
4040 class =" name-text"
4141 >
42- {{ song?.name || "未知曲目" }}
43- <n-text v-if =" song.alia?.length" class =" alia" depth =" 3" > ({{ song.alia }}) </n-text >
42+ {{ settingStore.hideLyricBrackets ? removeBrackets( song?.name) : (song?.name || "未知曲目") }}
43+ <n-text v-if =" song.alia?.length && !settingStore.hideLyricBrackets " class =" alia" depth =" 3" > ({{ song.alia }}) </n-text >
4444 </n-ellipsis >
4545 </div >
4646 <n-flex :size =" 4" :wrap =" false" class =" desc" align =" center" >
9090 MV
9191 </n-tag >
9292 <!-- 歌手 -->
93- <div v-if =" Array.isArray(song.artists)" class =" artists text-hidden " >
93+ <div v-if =" Array.isArray(song.artists)" class =" artists" >
9494 <n-text
9595 v-for =" ar in song.artists"
9696 :key =" ar.id"
103103 <div v-else-if =" song.type === 'radio'" class =" artists" >
104104 <n-text class =" ar" > 电台节目 </n-text >
105105 </div >
106- <div v-else class =" artists text-hidden " @click =" openJumpArtist(song.artists)" >
106+ <div v-else class =" artists" @click =" openJumpArtist(song.artists)" >
107107 <n-text class =" ar" > {{ song.artists || "未知艺术家" }} </n-text >
108108 </div >
109109 </n-flex >
@@ -163,6 +163,7 @@ import { QualityType, type SongType } from "@/types/main";
163163import { useStatusStore , useMusicStore , useDataStore , useSettingStore } from " @/stores" ;
164164import { formatNumber } from " @/utils/helper" ;
165165import { openJumpArtist } from " @/utils/modal" ;
166+ import { removeBrackets } from " @/utils/format" ;
166167import { toLikeSong } from " @/utils/auth" ;
167168import { isObject } from " lodash-es" ;
168169import { formatTimestamp , msToTime } from " @/utils/time" ;
@@ -320,6 +321,7 @@ const localCover = async (show: boolean) => {
320321 }
321322 .title {
322323 flex : 1 ;
324+ min-width : 0 ;
323325 display : flex ;
324326 align-items : center ;
325327 padding : 4px 20px 4px 0 ;
@@ -335,6 +337,7 @@ const localCover = async (show: boolean) => {
335337 overflow : hidden ;
336338 }
337339 .info {
340+ min-width : 0 ;
338341 .name {
339342 display : flex ;
340343 flex-direction : row ;
@@ -343,6 +346,7 @@ const localCover = async (show: boolean) => {
343346 font-size : 16px ;
344347 }
345348 .desc {
349+ min-width : 0 ;
346350 margin-top : 2px ;
347351 font-size : 13px ;
348352 .n-tag {
@@ -375,8 +379,13 @@ const localCover = async (show: boolean) => {
375379 }
376380 }
377381 .artists {
382+ flex : 1 ;
383+ min-width : 0 ;
384+ overflow : hidden ;
385+ text-overflow : ellipsis ;
386+ white-space : nowrap ;
378387 .ar {
379- display : inline-flex ;
388+ display : inline ;
380389 transition : opacity 0.3s ;
381390 opacity : 0.6 ;
382391 cursor : pointer ;
@@ -407,6 +416,7 @@ const localCover = async (show: boolean) => {
407416 }
408417 .album {
409418 flex : 1 ;
419+ min-width : 0 ;
410420 line-clamp : 2 ;
411421 -webkit-line-clamp : 2 ;
412422 padding-right : 20px ;
0 commit comments