Skip to content

WIP: Feature/layout fixes - #31

Open
pietrushnic wants to merge 2 commits into
mainfrom
feature/layout-fixes
Open

WIP: Feature/layout fixes#31
pietrushnic wants to merge 2 commits into
mainfrom
feature/layout-fixes

Conversation

@pietrushnic

Copy link
Copy Markdown
Member

This is temporary branch just for review of course materials, it would be rebased after mergining other hanging branches.

- Disable HMR error overlay to reduce memory consumption
- Add file watching optimizations (disable polling, 1s interval)
- Ignore slides/tools/** and slides/slidev-template/** patterns
  to prevent infinite symlink loop in file watcher (ELOOP errors)
- Configure vendor chunk splitting to reduce memory pressure
- Exclude @slidev/cli from pre-bundling optimization
- Add build-time rollup optimizations for chunking

scripts/render-slides: expose GC API for better memory management

- Add --expose-gc to NODE_OPTIONS to allow manual garbage collection
- Helps Vite/Slidev plugins manage memory more effectively

These changes address memory exhaustion issues when running Slidev
dev server with Vite 7, which has known HMR memory leaks.

Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
- Reduce figure/figcaption margins and padding for tighter spacing
- Add .slidev-layout padding-top: 0.5rem to start content higher
- Add padding-bottom: 2.5rem to reserve space for footer
- Fix figcaption font-size to 12px for consistency
- Add center tag flex styling for proper alignment

This fixes the issue where figcaptions overlapped with the
absolutely positioned footer on slides with large images.

Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant