fix(ui): BottomTabBar no longer blocks Settings SaveBar clicks (#2185)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
xiekailian
2026-05-19 20:01:30 -07:00
committed by GitHub
co-authored by Cursor
parent 7cbe82de52
commit ad61b4cec7
2 changed files with 11 additions and 1 deletions
+4 -1
View File
@@ -180,7 +180,10 @@ const BottomTabBar = () => {
};
return (
<div className="absolute inset-x-0 bottom-0 z-50">
// pointer-events-none on the full-width shell so transparent areas (e.g.
// beside the centered nav pill) do not steal clicks from sticky footers
// such as Settings SaveBar. Only the <nav> pill re-enables hits.
<div className="pointer-events-none absolute inset-x-0 bottom-0 z-50">
{/* Hover strip — only matters when collapsed; provides a 12px bottom
edge the user can mouse into to reveal the bar again. */}
{collapsed && (
@@ -138,4 +138,11 @@ describe('BottomTabBar', () => {
const { container } = await renderBottomTabBar('/');
expect(container.firstChild).toBeNull();
});
it('uses pointer-events-none on the full-width shell so side areas do not block clicks', async () => {
const { container } = await renderBottomTabBar('/home');
const shell = container.firstElementChild;
expect(shell).toHaveClass('pointer-events-none');
expect(shell?.querySelector('nav')).toHaveClass('pointer-events-auto');
});
});