fix: strip existing sso param from clientUrl, add aria roles to dropdowns, add x-pathname fallback, move .dropdown-menu into @layer components

This commit is contained in:
openhands committed 2026-07-03 16:17:42 +02:00
1 parent 7e616ca6b3
commit 187af2e147
4 files changed
+37 -37

No files matched your search

+11 -8
View File
@@ -67,15 +67,16 @@ export async function TopHeader() {
Administration
</summary>
<div
role="menu"
className="dropdown-menu absolute right-0 top-full mt-0.5 min-w-[180px] rounded-xl z-50 py-2"
>
<Link href="/admin" className="dropdown-item">
<Link href="/admin" className="dropdown-item" role="menuitem">
Admin panel
</Link>
<Link href="/admin/commandocentrum" className="dropdown-item">
<Link href="/admin/commandocentrum" className="dropdown-item" role="menuitem">
Commandocentrum
</Link>
<Link href="/admin/logs" className="dropdown-item">
<Link href="/admin/logs" className="dropdown-item" role="menuitem">
Logs
</Link>
</div>
@@ -89,21 +90,22 @@ export async function TopHeader() {
<span className="-ml-2 font-semibold" style={{ color: "var(--color-navbar-text, var(--color-text))" }}>{session.user.name}</span>
</summary>
<div
role="menu"
className="dropdown-menu absolute right-0 top-full mt-0.5 min-w-[200px] rounded-xl z-50 py-2"
>
<Link href="/me" className="dropdown-item">
<Link href="/me" className="dropdown-item" role="menuitem">
My dashboard
</Link>
<Link href={`/u/${session.user.name}`} className="dropdown-item">
<Link href={`/u/${session.user.name}`} className="dropdown-item" role="menuitem">
My profile
</Link>
<Link href="/settings" className="dropdown-item">
<Link href="/settings" className="dropdown-item" role="menuitem">
User settings
</Link>
<Link href="/settings/2fa" className="dropdown-item">
<Link href="/settings/2fa" className="dropdown-item" role="menuitem">
Two-factor
</Link>
<Link href="/settings/sessions" className="dropdown-item">
<Link href="/settings/sessions" className="dropdown-item" role="menuitem">
Login activity
</Link>
<div className="h-px my-1 mx-3" style={{ backgroundColor: "color-mix(in srgb, var(--color-text-muted) 12%, transparent)" }} />
@@ -115,6 +117,7 @@ export async function TopHeader() {
>
<button
type="submit"
role="menuitem"
className="dropdown-item w-full text-center mx-1 rounded-lg"
style={{
backgroundColor: "color-mix(in srgb, var(--button-danger-color) 12%, transparent)",