Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab763ca

Browse files
fix: show notifications on mobile (#17008)
Show the notifications close to the menu button.**After fix:**<img width="515" alt="Screenshot 2025-03-19 at 15 09 36"src="https://github.com/user-attachments/assets/38f86c5b-d324-4a8b-9c68-ea818b226ae4"/>
1 parentabbd88b commitab763ca

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

‎site/src/modules/dashboard/Navbar/MobileMenu.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ export const MobileMenu: FC<MobileMenuProps> = ({
6767
<DropdownMenuTriggerasChild>
6868
<Button
6969
aria-label={open ?"Close menu" :"Open menu"}
70-
size="lg"
70+
size="icon-lg"
7171
variant="subtle"
72-
className="ml-auto md:hidden"
7372
>
7473
{open ?<XIcon/> :<MenuIcon/>}
7574
</Button>

‎site/src/modules/dashboard/Navbar/NavbarView.tsx

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const NavbarView: FC<NavbarViewProps> = ({
5555

5656
<NavItemsclassName="ml-4"/>
5757

58-
<divclassName="hidden md:flex items-center gap-3 ml-auto">
58+
<divclassName="hidden md:flex items-center gap-3 ml-auto">
5959
{proxyContextValue&&(
6060
<ProxyMenuproxyContextValue={proxyContextValue}/>
6161
)}
@@ -67,6 +67,17 @@ export const NavbarView: FC<NavbarViewProps> = ({
6767
canViewHealth={canViewHealth}
6868
/>
6969

70+
{user&&(
71+
<UserDropdown
72+
user={user}
73+
buildInfo={buildInfo}
74+
supportLinks={supportLinks}
75+
onSignOut={onSignOut}
76+
/>
77+
)}
78+
</div>
79+
80+
<divclassName="ml-auto flex items-center gap-3 md:hidden">
7081
<NotificationsInbox
7182
fetchNotifications={API.getInboxNotifications}
7283
markAllAsRead={()=>{
@@ -79,26 +90,17 @@ export const NavbarView: FC<NavbarViewProps> = ({
7990
}
8091
/>
8192

82-
{user&&(
83-
<UserDropdown
84-
user={user}
85-
buildInfo={buildInfo}
86-
supportLinks={supportLinks}
87-
onSignOut={onSignOut}
88-
/>
89-
)}
93+
<MobileMenu
94+
proxyContextValue={proxyContextValue}
95+
user={user}
96+
supportLinks={supportLinks}
97+
onSignOut={onSignOut}
98+
canViewAuditLog={canViewAuditLog}
99+
canViewOrganizations={canViewOrganizations}
100+
canViewDeployment={canViewDeployment}
101+
canViewHealth={canViewHealth}
102+
/>
90103
</div>
91-
92-
<MobileMenu
93-
proxyContextValue={proxyContextValue}
94-
user={user}
95-
supportLinks={supportLinks}
96-
onSignOut={onSignOut}
97-
canViewAuditLog={canViewAuditLog}
98-
canViewOrganizations={canViewOrganizations}
99-
canViewDeployment={canViewDeployment}
100-
canViewHealth={canViewHealth}
101-
/>
102104
</div>
103105
);
104106
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp