mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
fix(synced-lyrics): Revert font-size behavior for non-fancy modes (#2788)
This commit is contained in:
@ -38,7 +38,10 @@ createEffect(() => {
|
||||
root.style.setProperty('--lyrics-active-offset', '0');
|
||||
break;
|
||||
case 'scale':
|
||||
root.style.setProperty('--lyrics-font-size', '1.4rem');
|
||||
root.style.setProperty(
|
||||
'--lyrics-font-size',
|
||||
'clamp(1.4rem, 1.1vmax, 3rem)',
|
||||
);
|
||||
root.style.setProperty(
|
||||
'--lyrics-line-height',
|
||||
'var(--ytmusic-body-line-height)',
|
||||
@ -58,7 +61,10 @@ createEffect(() => {
|
||||
root.style.setProperty('--lyrics-active-offset', '0');
|
||||
break;
|
||||
case 'offset':
|
||||
root.style.setProperty('--lyrics-font-size', '1.4rem');
|
||||
root.style.setProperty(
|
||||
'--lyrics-font-size',
|
||||
'clamp(1.4rem, 1.1vmax, 3rem)',
|
||||
);
|
||||
root.style.setProperty(
|
||||
'--lyrics-line-height',
|
||||
'var(--ytmusic-body-line-height)',
|
||||
@ -78,7 +84,10 @@ createEffect(() => {
|
||||
root.style.setProperty('--lyrics-active-offset', '5%');
|
||||
break;
|
||||
case 'focus':
|
||||
root.style.setProperty('--lyrics-font-size', '1.4rem');
|
||||
root.style.setProperty(
|
||||
'--lyrics-font-size',
|
||||
'clamp(1.4rem, 1.1vmax, 3rem)',
|
||||
);
|
||||
root.style.setProperty(
|
||||
'--lyrics-line-height',
|
||||
'var(--ytmusic-body-line-height)',
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
/* Typography */
|
||||
--lyrics-font-family: Satoshi, Avenir, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
|
||||
Open Sans, Helvetica Neue, sans-serif;
|
||||
--lyrics-font-size: 1.4rem;
|
||||
--lyrics-font-size: clamp(1.4rem, 1.1vmax, 3rem);
|
||||
--lyrics-line-height: var(--ytmusic-body-line-height);
|
||||
--lyrics-width: 100%;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user