layout: fix overflow of some font names in custom fonts, closes #1901 (#1903)

This commit is contained in:
Huang Xin
2025-08-26 12:35:43 +08:00
committed by GitHub
parent 1be43ff704
commit 76feefff00
@@ -175,7 +175,7 @@ const CustomFonts: React.FC<CustomFontsProps> = ({ bookKey, onBack }) => {
fontFamily: font.loaded ? `"${font.name}", sans-serif` : 'sans-serif',
fontWeight: 400,
}}
className='text-base-content line-clamp-1'
className='text-base-content line-clamp-1 break-all'
>
{font.family || font.name}
</div>