mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
fix(ui): BottomTabBar no longer blocks Settings SaveBar clicks (#2185)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user