Skip to content

Conversation

@rcssdy
Copy link

@rcssdy rcssdy commented Jan 12, 2026

Summary

Fix scroll lock handling when opening/closing nested modals.

Changes

  • Add modalDepth store to track open modal count
  • Add onModalOpened/onModalClosed callbacks to preserve/restore scroll state
  • Add reusable Popup component for consistent modal wrapper
  • Update +layout.svelte to wrap app in Modal with proper callbacks
  • Update ChannelCard, FeedList/Item, FeedsCard to use Modal

Testing

Verify that nested modals work correctly:

  1. Open a modal (scroll locks)
  2. Open another modal inside it
  3. Close inner modal (scroll should remain locked)
  4. Close outer modal (scroll should be restored)

- Add modalDepth store to track open modal count
- Add onModalOpened/onModalClosed callbacks to preserve/restore scroll state
- Add reusable Popup component for consistent modal wrapper
- Update +layout.svelte to wrap app in Modal with proper callbacks
- Update ChannelCard, FeedList/Item, FeedsCard to use Modal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant