Repository navigation
Grow panels to fit content that arrives after they open - #16483
Merged
Merged
Conversation
A Wi-Fi scan or Bluetooth discovery fills its list a beat after the panel is up, and the card snapped taller when it did. The card now follows the content's height over 200ms on the strong ease-out, cropping the new rows as it grows, and is placed by that drawn height so a bottom or side bar's panel grows away from the bar too. For the first 60ms after opening it snaps instead, while freshly built content measures itself, so a panel never grows in from a stale height. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge; the previous finding is fixed and no new actionable issues were found. SummaryThe PR makes panel cards grow smoothly as content arrives after opening.
Reviews (2) · Last reviewed commit: "Hand a growing panel's drawn height to t..." · Reviewed by Greptile |
The bar was told the card's final height, so switching to a neighbour while the card was still growing started the next card taller than what was on screen, and it jumped before morphing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The network panel's Wi-Fi list and the Bluetooth panel's devices fill in a beat after the panel opens (the scanner is re-enabled 100ms after opening, and Bluetooth discovery keeps finding devices), and the card snapped taller each time.
KeyboardPanelnow draws the card at adrawnHeightthat followscontentHeightover 200ms onStyle.easeOut. The content is laid out at its final height and the card crops it while growing, so new rows are uncovered instead of spilling out. The card's position also uses the drawn height, so on a bottom or side bar the panel grows away from the bar rather than jumping.For the first 60ms after opening the height snaps instead: that's when lazily built content first measures itself, and a panel shouldn't grow in from a stale size. During a panel-to-panel morph, the morph drives the height.
Verified in the running shell with screen recordings examined frame by frame:
Tests: bluetooth, network, network-captive-portal, network-owe-transition, bar-click-clipping, keyboard-panel-lazy, clock, weather, panel-key-catcher and the plugin/bar contract tests pass.
🤖 Generated with Claude Code