Skip to content

Reorder overlay: stop placeholder animating up from zero on insert#122

Merged
vincentmakes merged 1 commit into
mainfrom
claude/fix-placeholder-height-0h98E
Apr 18, 2026
Merged

Reorder overlay: stop placeholder animating up from zero on insert#122
vincentmakes merged 1 commit into
mainfrom
claude/fix-placeholder-height-0h98E

Conversation

@vincentmakes

Copy link
Copy Markdown
Owner

The dashed .reorder-placeholder carried transition: height .2s ease,
so every time a drag started the placeholder (created detached with its
target height set inline, then inserted into the list) animated up from
~0 to its full height over 200 ms. The floating pill, which doesn't
transition, appeared at full height immediately — making the placeholder
visibly shorter than the pill during the drag.

The transition was dead code: the placeholder's height is set once at
creation (admin.js:5065) and never written again. Dropping the transition
makes the placeholder render at full height instantly, matching the pill.

https://claude.ai/code/session_01TZA17yUsrhNLFMW39M87gF

The dashed .reorder-placeholder carried `transition: height .2s ease`,
so every time a drag started the placeholder (created detached with its
target height set inline, then inserted into the list) animated up from
~0 to its full height over 200 ms. The floating pill, which doesn't
transition, appeared at full height immediately — making the placeholder
visibly shorter than the pill during the drag.

The transition was dead code: the placeholder's height is set once at
creation (admin.js:5065) and never written again. Dropping the transition
makes the placeholder render at full height instantly, matching the pill.

https://claude.ai/code/session_01TZA17yUsrhNLFMW39M87gF
@vincentmakes vincentmakes merged commit 3a151df into main Apr 18, 2026
3 checks passed
@vincentmakes vincentmakes deleted the claude/fix-placeholder-height-0h98E branch April 18, 2026 18:12
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.

2 participants