Skip to content

fix(update-modal): scroll long release notes inside the modal - #1807

Merged
chhoumann merged 1 commit into
masterfrom
fix/update-modal-scroll
Sep 26, 2026
Merged

chhoumann merged 1 commit into
masterfrom
fix/update-modal-scroll

Conversation

@chhoumann

@chhoumann chhoumann commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

The What's new modal's release notes now scroll inside the modal, so the Done footer stays in view however many releases it lists.

.quickadd-update-modal had max-height: 70%, but its parent (the modal's content element, .quickadd-update-modal-container) has no definite height, so the limit never resolved and the notes grew the content instead of scrolling. That went unnoticed while the modal showed one or two releases. Since #1803 it can list up to 100: upgrading from 1.18.1 made the notes ~122,000px tall and put Done that far down. On desktop the X and Esc still close it. On phones Done is the reliable exit (#635), so an old-version upgrader would have to scroll through every release to leave.

The fix lets the content element shrink to the modal's bounded height (min-height: 0) and has the notes fill the remaining space (flex: 1 1 auto) as the scroll region.

Verified in Obsidian 1.13.7 with a real 1.18.1 -> master upgrade (live GitHub release notes):

  • Desktop 1024x800: notes scroll, Done pinned at the bottom of the modal.
  • Phone 390x844 (is-phone): same, Done above the home-indicator inset.
  • Short notes: the modal still shrinks to fit its content.

tests/e2e/update-modal-layout.test.ts builds UpdateModal's DOM inside Obsidian's real modal styles and asserts the notes scroll and the footer stays inside the modal. It fails on master and passes with this change.

No release or migration impact beyond the CSS. The 2.28.0 release PR (#1790) will need regenerating after this merges.

Note

Fix update modal to scroll long release notes instead of overflowing

Fixes CSS sizing in styles.css so long release notes scroll inside the update modal and the footer stays in view. The modal content container gets a zero minimum height so it can shrink, and the percentage-based max height is replaced with flexible sizing while keeping the scrollable overflow.

Macroscope summarized 26478b8.

Summary by CodeRabbit

  • Bug Fixes
    • Updated the release-notes modal layout so long notes can scroll within the modal while the footer stays visible.

@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 691e3438-9b42-4e40-b212-ea63501ffd1c

📥 Commits

Reviewing files that changed from the base of the PR and between 431cbc2 and 26478b8.

📒 Files selected for processing (2)
  • src/styles.css
  • tests/e2e/update-modal-layout.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 1 remain after this review.


📝 Walkthrough

Walkthrough

The update modal can shrink within its bounded height. Its release-notes region fills the available space without the previous maximum-height constraint. An end-to-end test checks scrolling and footer placement with 300 release-note paragraphs.

Changes

Update modal layout

Layer / File(s) Summary
Modal sizing and layout validation
src/styles.css, tests/e2e/update-modal-layout.test.ts
The modal container has min-height: 0, and the release-notes region fills available space. The test checks that notes scroll and the Done footer stays within the modal. It removes its temporary DOM container in a finally block.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 26478

No actionable merge-blocking issue was identified in the modal layout change. Normal checks can proceed before merging.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: long release notes scroll inside the update modal.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the notes that flow
While footer stays where it should go
Three hundred lines can scroll with ease
The modal fits them as you please
Then rabbit hops away with cheer

Comment @coderabbitai help to get the list of available commands.

The release notes' max-height: 70% never resolved because the modal content
has no definite height, so the notes grew the content instead of scrolling.
With #1803 showing up to 100 releases, an upgrade from an old version pushed
the Done footer ~122,000px down. Let the content shrink to the modal's bounded
height and have the notes fill the remaining space so they scroll.
@chhoumann
chhoumann force-pushed the fix/update-modal-scroll branch from 0a0ebbe to 26478b8 Compare September 26, 2026 16:29
@chhoumann
chhoumann marked this pull request as ready for review September 26, 2026 16:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-26T16:36:03.221341Z 26478b8 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chhoumann
chhoumann merged commit 5310ff3 into master Sep 26, 2026
15 of 17 checks passed
@chhoumann
chhoumann deleted the fix/update-modal-scroll branch September 26, 2026 16:39
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