From 27aa22077a9cef93598dd1ce5f87202948fdff4e Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 8 Jun 2024 15:54:47 +0800 Subject: [PATCH] refactor: add user name overflow behavior --- src/client/components/layout/UserConfig.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/client/components/layout/UserConfig.tsx b/src/client/components/layout/UserConfig.tsx index 3ce2204..cf460c4 100644 --- a/src/client/components/layout/UserConfig.tsx +++ b/src/client/components/layout/UserConfig.tsx @@ -61,10 +61,14 @@ export const UserConfig: React.FC = React.memo((props) => { ); - const name =
{userInfo?.username ?? ''}
; + const name = ( +
+ {userInfo?.username ?? ''} +
+ ); const more = ( - );