mobile: some UI tweaks and add system fonts (#233)

This commit is contained in:
Huang Xin
2025-01-23 16:53:42 +01:00
committed by GitHub
parent d757555fcb
commit 58d3e7b221
7 changed files with 67 additions and 8 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ const Dialog: React.FC<DialogProps> = ({
<div
className={clsx(
'text-base-content my-2 flex-grow overflow-y-auto px-[10%]',
'text-base-content my-2 flex-grow overflow-y-auto px-6 sm:px-[10%]',
contentClassName,
)}
>
+1 -1
View File
@@ -35,7 +35,7 @@ const MenuItem: React.FC<MenuItemProps> = ({
>
<div className='flex items-center'>
{!noIcon && <span style={{ minWidth: `${iconSize}px` }}>{icon}</span>}
<span className={clsx('ml-2 max-w-32 truncate', labelClass)}>{label}</span>
<span className={clsx('ml-2 truncate sm:max-w-32', labelClass)}>{label}</span>
</div>
{shortcut && <span className='text-neutral-content hidden text-sm sm:flex'>{shortcut}</span>}
</button>