Add swipe-to-open sidebar on all pages + fix bottom bar styling
- Create SwipeableContent component for sidebar swipe on non-tab pages - Add swipe-to-close sidebar from overlay - Make swipe work from entire page (ignoring interactive elements) - Show title and divider on desktop when tab bar is at bottom - Hide title/divider only on mobile for bottom position 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from '../../contexts/LanguageContext';
|
||||
import { useSidebar } from '../../contexts/SidebarContext';
|
||||
import TabsScroller from '../../components/TabsScroller';
|
||||
import { SwipeableContent } from '../../components/SwipeableContent';
|
||||
import { auditAPI } from '../../api/client';
|
||||
import type { AuditLogItem } from '../../api/client';
|
||||
import '../../styles/AdminAudit.css';
|
||||
@@ -58,7 +59,7 @@ export default function AuditLogs() {
|
||||
};
|
||||
|
||||
return (
|
||||
<main className="main-content admin-audit-root">
|
||||
<SwipeableContent className="main-content admin-audit-root">
|
||||
<div className="page-tabs-container">
|
||||
<TabsScroller className="page-tabs-slider">
|
||||
<button className="mobile-menu-btn" onClick={toggleMobileMenu} aria-label={t.theme.toggleMenu}>
|
||||
@@ -161,6 +162,6 @@ export default function AuditLogs() {
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</SwipeableContent>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user