mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-02 13:15:17 +09:00
Per docs/plans/FRONTEND_UX_TAILWIND_CLEANUP_PLAN.md Phase 5. - Add hooks/useLockBodyScroll.js: a ref-counted body-scroll lock that composes nested locks correctly (a modal over an already-locked drawer no longer restores scroll prematurely). Replaces the duplicated document.body.style.overflow toggles in DashboardLayout (mobile nav drawer), PreviewDrawer (file preview), and ChatDrawer (mobile AI sheet). - lib/ai/markdown.js: escape quotes in link URLs. The renderer already HTML-escapes all input and only emits allowlisted tags, but `"`/`'` in a crafted URL could break out of the href attribute — now percent-encoded. Verified: npm run build passes; eslint adds no new errors. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>