优化播放详情页UI,歌曲名字、歌手等文字过长时被截断的问题(#2049)

pull/1235/merge
lyswhut 2024-09-24 18:47:40 +08:00
parent 7247bcad1b
commit df08f677bd
2 changed files with 7 additions and 5 deletions

View File

@ -5,6 +5,7 @@
### 优化 ### 优化
- 修正搜索歌曲提示框文案(#2050 - 修正搜索歌曲提示框文案(#2050
- 优化播放详情页UI歌曲名字、歌手等文字过长时被截断的问题#2049
### 修复 ### 修复

View File

@ -11,7 +11,7 @@ transition(enter-active-class="animated slideInRight" leave-active-class="animat
//- div(:class="$style.info") //- div(:class="$style.info")
div(:class="$style.info") div(:class="$style.info")
img(v-if="musicInfo.pic" :class="$style.img" :src="musicInfo.pic") img(v-if="musicInfo.pic" :class="$style.img" :src="musicInfo.pic")
div.description(:class="$style.description") div.description(:class="['scroll', $style.description]")
p {{ $t('player__music_name') }}{{ musicInfo.name }} p {{ $t('player__music_name') }}{{ musicInfo.name }}
p {{ $t('player__music_singer') }}{{ musicInfo.singer }} p {{ $t('player__music_singer') }}{{ musicInfo.singer }}
p(v-if="musicInfo.album") {{ $t('player__music_album') }}{{ musicInfo.album }} p(v-if="musicInfo.album") {{ $t('player__music_album') }}{{ musicInfo.album }}
@ -244,11 +244,11 @@ export default {
flex-flow: column nowrap; flex-flow: column nowrap;
justify-content: flex-start; justify-content: flex-start;
max-width: 300px; max-width: 300px;
min-height: 0;
} }
.img { .img {
max-width: 100%; max-width: 100%;
max-height: 100%; max-height: 80%;
min-width: 100%; min-width: 100%;
box-shadow: 0 0 6px var(--color-primary-alpha-500); box-shadow: 0 0 6px var(--color-primary-alpha-500);
border-radius: 6px; border-radius: 6px;
@ -256,8 +256,9 @@ export default {
} }
.description { .description {
max-width: 300px; max-width: 300px;
padding: 15px 0; margin-top: 15px;
overflow: hidden; padding-bottom: 15px;
min-height: 0;
p { p {
line-height: 1.5; line-height: 1.5;
font-size: 14px; font-size: 14px;