improve: menu collapse readability (#4099)

Co-authored-by: rongjun.qiu <qiurj@hengtonggroup.com.cn>
This commit is contained in:
Rhon Joe 2024-05-06 11:34:56 +08:00 committed by GitHub
parent 03cf00422a
commit 94a650475d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,7 @@ export default function NavLink({
'group flex items-center h-9 rounded-md py-2 text-sm font-normal', 'group flex items-center h-9 rounded-md py-2 text-sm font-normal',
mode === 'expand' ? 'px-3' : 'px-2.5', mode === 'expand' ? 'px-3' : 'px-2.5',
)} )}
title={mode === 'collapse' ? name : ''}
> >
<NavIcon <NavIcon
className={classNames( className={classNames(