mobile: responsive sizes for annotation tools (#236)

* chore: refine assetPrefix in config for easier debug over LAN

* mobile: responsive sizes for annotation tools
This commit is contained in:
Huang Xin
2025-01-23 21:31:41 +01:00
committed by GitHub
parent 58d3e7b221
commit 18dfd73bed
5 changed files with 24 additions and 20 deletions
+3 -1
View File
@@ -35,7 +35,9 @@ const MenuItem: React.FC<MenuItemProps> = ({
>
<div className='flex items-center'>
{!noIcon && <span style={{ minWidth: `${iconSize}px` }}>{icon}</span>}
<span className={clsx('ml-2 truncate sm:max-w-32', labelClass)}>{label}</span>
<span className={clsx('ml-2 truncate text-base sm:max-w-32 sm:text-sm', labelClass)}>
{label}
</span>
</div>
{shortcut && <span className='text-neutral-content hidden text-sm sm:flex'>{shortcut}</span>}
</button>