AFFiNE/packages/frontend
pengx17 fb76fdfca3
fix(core): menu not scrollable when opening in modal (#8179)
fix AF-1360

When menu (with modal = false) is rendered in Modal, the [RemoveScroll utility wrapped by Modal](660060a765/packages/react/dialog/src/Dialog.tsx (L203)) will prevent menu from scrolling.

The reason why menu is scrollable within a dialog is because it is also wrapped a RemoveScroll [when modal is on. ](660060a765/packages/react/menu/src/Menu.tsx (L305))

In this fix, added a `useWithinModal` utility hook so that menu will automatically assign noportal mode for menu when it is rendered inside of a modal.
2024-09-10 06:09:00 +00:00
..
admin fix(admin): nav bar incorrectly active state (#7870) 2024-09-05 09:35:22 +00:00
component fix(core): menu not scrollable when opening in modal (#8179) 2024-09-10 06:09:00 +00:00
core feat(core): add enable url preview to workspace settings (#8089) 2024-09-10 04:04:06 +00:00
electron chore: bump bs (#8153) 2024-09-07 04:08:22 +00:00
electron-api chore(electron): downgrade electron to v31 (#8095) 2024-09-05 01:30:26 +00:00
graphql feat(core): add enable url preview to workspace settings (#8089) 2024-09-10 04:04:06 +00:00
i18n feat(core): add enable url preview to workspace settings (#8089) 2024-09-10 04:04:06 +00:00
mobile ci(mobile): typecheck (#8166) 2024-09-09 02:59:50 +00:00
native fix(native): return type casts (#7986) 2024-08-27 05:53:05 +00:00
templates chore: bump base version to 0.16.0 2024-08-09 18:30:07 +08:00
web feat: init renderer server (#8088) 2024-09-10 04:03:59 +00:00