Repository navigation
Conversation
…e Footer safe area inset
…the Footer is placed from
|
I reproduced #9511 on the base and confirmed that I also reproduced the short-footer limitation you noted. In the default layout with
With the 34px inset, Main’s bottom padding is 52px instead of 68px (18 + 34 + 16), so the last item sits flush against the footer when scrolled to the end. A responsive footer ( |
|
Replaced the |
|
Thanks for reproducing and measuring this. 877c34b now reserves the full safe-area inset for short and responsive footers, which covers #9511, so this PR is superseded and I'm closing it. One separate case still overlaps on current master: with a classic (non-overlay) horizontal scrollbar, the navbar and aside run 15px into the footer. The bottom-anchor change in this branch fixed that case, but it breaks height transitions when |
Fixes #9511
AppShell.Footeradds the bottom safe-area inset to its configured height, but Navbar, Aside, and Main did not reserve that extra space. This aligns the side sections with the footer and preserves Main's bottom padding, including when the footer is shorter than the inset.min(inset, offset)fix still overlapped an 18px footer by 16px and gave Main 52px of bottom padding instead of 68px withpadding={16}.footer.offset: falsedisables the reserve. Navbar and Aside usebottomrather than a100dvh-based height; static mode resetsbottomtoauto, and the edge still animates.footer={{ height: 18 }}andpadding={16}, leave both side sections visible, and set Chrome's bottom safe-area inset to 34px withEmulation.setSafeAreaInsetsOverride. At 1024×768, the side sections now end at the footer's top, y=716, and Main has 68px bottom padding. Withheight: { base: 18, md: 60 }, they also meet at y=716 at 840px wide and y=674 at 1024px wide.bottom: the footer is anchored to its containing block, which can differ from100dvh. On a 1024×768 page with a classic horizontal scrollbar and no inset, the footer starts at y=693 while the old navbar ends at y=708; anchoring both to the same bottom edge removes that overlap.100dvhheight. Consumer overrides ofh="auto",top,bottom, or non-fixed positioning interact withtop+bottomrather than the old built-in height. Explicit heights andmahretain their behavior.layout="alt"retains full-height side sections; static layouts and inactive footer offsets retain their spacing.npm run jest -- packages/@mantine/core/src/components/AppShell --runInBandpasses (22 suites, 444 tests), including pure helper regressions for short, zero-height, responsive, resized, collapsed, and offset-disabled footers with explicit inactive resets. The mixed global/scoped collapsed-shell reproduction passes, and the built package passes 26 headless-Chrome layout scenarios with safe-area overrides of 0, 24, and 34px; six fail on the previously submitted head. jsdom cannot measureenv()or element bounds.npm run setup,npm run build all,npm run test:esm-entrypoints, both documentation compilers, andnpm testpass (830 suites, 20,005 tests).The pre-existing 1px border floor on a zero-height client-rendered footer remains unchanged. Device testing and Firefox/iOS testing remain outside this verification.