优化UI (#1353)
* 优化UI * 更新 --------- Co-authored-by: lyswhut <lyswhut@qq.com>
This commit is contained in:
+26
-10
@@ -7,9 +7,11 @@ div(:class="$style.container")
|
||||
img( :class="$style.avatar" :src="item.avatar || commentDefImg" @error="handleUserImg")
|
||||
div(:class="$style.right")
|
||||
div(:class="$style.info")
|
||||
div.select(:class="$style.name") {{item.userName}}
|
||||
time(:class="$style.label" v-if="item.timeStr") {{timeFormat(item.timeStr)}}
|
||||
div(:class="$style.label" v-if="item.location") {{item.location}}
|
||||
div(:class="$style.baseInfo")
|
||||
div.select(:class="$style.name") {{item.userName}}
|
||||
div(:class="$style.metaInfo")
|
||||
time(:class="$style.label" v-if="item.timeStr") {{timeFormat(item.timeStr)}}
|
||||
div(:class="$style.label" v-if="item.location") {{$t('comment__location', { location: item.location })}}
|
||||
div(:class="$style.likes" v-if="item.likedCount != null")
|
||||
svg(:class="$style.likesIcon" version='1.1' xmlns='http://www.w3.org/2000/svg' xlink='http://www.w3.org/1999/xlink' viewBox='0 0 512 512' space='preserve')
|
||||
use(xlink:href='#icon-thumbs-up')
|
||||
@@ -86,12 +88,27 @@ export default {
|
||||
.info {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
align-items: flex-end;
|
||||
min-width: 0;
|
||||
gap: 15px;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
line-height: 1.3;
|
||||
gap: 6px;
|
||||
color: var(--color-450);
|
||||
}
|
||||
.baseInfo {
|
||||
height: 100%;
|
||||
flex: auto;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-flow: column nowrap;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
.metaInfo {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
min-width: 0;
|
||||
gap: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.name {
|
||||
flex: 0 1 auto;
|
||||
min-width: 0;
|
||||
@@ -104,11 +121,11 @@ export default {
|
||||
// margin-left: 5px;
|
||||
}
|
||||
.likes {
|
||||
flex: 1 0 auto;
|
||||
margin-left: 10px;
|
||||
flex: none;
|
||||
font-size: 11px;
|
||||
align-self: flex-end;
|
||||
text-align: right;
|
||||
padding-top: 3px;
|
||||
align-self: flex-start;
|
||||
}
|
||||
.likesIcon {
|
||||
width: 12px;
|
||||
@@ -119,7 +136,6 @@ export default {
|
||||
.comment_text {
|
||||
text-align: justify;
|
||||
font-size: 14px;
|
||||
padding-top: 5px;
|
||||
line-height: 1.5;
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
|
||||
@@ -5,12 +5,14 @@ export const allMusicList: Map<string, LX.Music.MusicInfo[]> = markRaw(new Map()
|
||||
|
||||
export const defaultList = markRaw<LX.List.MyDefaultListInfo>({
|
||||
id: LIST_IDS.DEFAULT,
|
||||
name: '试听列表',
|
||||
name: 'list__name_default',
|
||||
// name: '试听列表',
|
||||
})
|
||||
|
||||
export const loveList = markRaw<LX.List.MyLoveListInfo>({
|
||||
id: LIST_IDS.LOVE,
|
||||
name: '我的收藏',
|
||||
name: 'list__name_love',
|
||||
// name: '我的收藏',
|
||||
})
|
||||
export const tempList = markRaw<LX.List.MyTempListInfo>({
|
||||
id: LIST_IDS.TEMP,
|
||||
|
||||
@@ -37,6 +37,7 @@ type Tags = Partial<Record<LX.OnlineSource, TagInfo>>
|
||||
|
||||
export const tags = shallowReactive<Tags>({})
|
||||
|
||||
|
||||
export declare interface ListInfoItem {
|
||||
play_count: string
|
||||
id: string
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<transition name="list-active">
|
||||
<svg-icon v-if="defaultList.id == listId" name="angle-right-solid" :class="$style.activeIcon" />
|
||||
</transition>
|
||||
{{ defaultList.name }}
|
||||
{{ $t(defaultList.name) }}
|
||||
</span>
|
||||
</li>
|
||||
<li
|
||||
@@ -42,7 +42,7 @@
|
||||
<transition name="list-active">
|
||||
<svg-icon v-if="loveList.id == listId" name="angle-right-solid" :class="$style.activeIcon" />
|
||||
</transition>
|
||||
{{ loveList.name }}
|
||||
{{ $t(loveList.name) }}
|
||||
</span>
|
||||
</li>
|
||||
<li
|
||||
|
||||
Reference in New Issue
Block a user