mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-06-16 21:03:58 +08:00
feat(sidebar): add backdrop for improved sidebar interaction
This commit is contained in:
@@ -759,6 +759,15 @@ export function MainLayout() {
|
||||
</header>
|
||||
|
||||
<div className="main-body">
|
||||
<button
|
||||
type="button"
|
||||
className={`sidebar-backdrop ${sidebarOpen ? 'visible' : ''}`}
|
||||
onClick={() => setSidebarOpen(false)}
|
||||
aria-label={t('common.close')}
|
||||
aria-hidden={!sidebarOpen}
|
||||
tabIndex={sidebarOpen ? 0 : -1}
|
||||
/>
|
||||
|
||||
<aside
|
||||
className={`sidebar ${sidebarOpen ? 'open' : ''} ${sidebarCollapsed ? 'collapsed' : ''}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user