Skip to content

Commit db38b27

Browse files
committed
修复桌面歌词开启不允许换行后出现字体截断的问题(#1106
1 parent cccb5b1 commit db38b27

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

src/common/defaultSetting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const defaultSetting: LX.AppSetting = {
5858
'desktopLyric.style.align': 'center',
5959
'desktopLyric.style.font': '',
6060
'desktopLyric.style.fontSize': 20,
61-
'desktopLyric.style.lineGap': 15,
61+
'desktopLyric.style.lineGap': 14,
6262
'desktopLyric.style.lyricUnplayColor': 'rgba(255, 255, 255, 1)',
6363
'desktopLyric.style.lyricPlayedColor': 'rgba(7, 197, 86, 1)',
6464
'desktopLyric.style.lyricShadowColor': 'rgba(0, 0, 0, 0.15)',

src/renderer-lyric/components/layout/LyricHorizontal/index.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:style="lrcStyles" @wheel="handleWheel" @mousedown="handleLyricMouseDown" @touchstart="handleLyricTouchStart"
66
>
77
<div :class="$style.lyricSpace" />
8-
<div ref="dom_lyric_text" :class="$style.lyricText" />
8+
<div ref="dom_lyric_text" />
99
<div :class="$style.lyricSpace" />
1010
</div>
1111
</template>
@@ -68,6 +68,9 @@ export default {
6868
// font-weight: bold;
6969
7070
:global {
71+
.font-lrc, .shadow {
72+
padding: 0.08em 0.14em;
73+
}
7174
.font-lrc {
7275
color: var(--color-lyric-unplay);
7376
}
@@ -171,9 +174,9 @@ export default {
171174
.lyric-space {
172175
height: 80%;
173176
}
174-
.lyric-text {
175-
padding: 0 0.14em;
176-
}
177+
// .lyric-text {
178+
179+
// }
177180
// .lrc-active {
178181
179182
// .lrc-line {

src/renderer-lyric/components/layout/LyricVertical/index.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:style="lrcStyles" @wheel="handleWheel" @mousedown="handleLyricMouseDown" @touchstart="handleLyricTouchStart"
66
>
77
<div :class="$style.lyricSpace" />
8-
<div ref="dom_lyric_text" :class="[$style.lyricText]" />
8+
<div ref="dom_lyric_text" />
99
<div :class="$style.lyricSpace" />
1010
</div>
1111
</template>
@@ -72,6 +72,9 @@ export default {
7272
}
7373
7474
:global {
75+
.font-lrc, .shadow {
76+
padding: 0.14em 0.07em;
77+
}
7578
.font-lrc {
7679
color: var(--color-lyric-unplay);
7780
}
@@ -178,9 +181,9 @@ export default {
178181
width: 80%;
179182
height: 100%;
180183
}
181-
.lyric-text {
182-
padding: 0.14em 0;
183-
}
184+
// .lyric-text {
185+
186+
// }
184187
// .lrc-active {
185188
186189
// .lrc-line {

0 commit comments

Comments
 (0)