fix(synced-lyrics): Revert font-size behavior for non-fancy modes (#2788)

This commit is contained in:
KimJammer
2024-12-28 09:26:34 -05:00
committed by GitHub
parent fa3e146ef7
commit f15c51f3d7
2 changed files with 13 additions and 4 deletions

View File

@ -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)',

View File

@ -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%;