Android icon indicating copy to clipboard operation
Android copied to clipboard

Fix Dax legs cut off on the onboarding end CTA

Open lmac012 opened this issue 5 months ago • 0 comments

Task/Issue URL: https://app.asana.com/1/137249556945/task/1215937292229504

Description

The waving Dax on the onboarding end CTA has no legs in its asset, so it needs to sit flush against the bottom input field to read correctly. With a bottom address bar it floated above the input with its body cut off, because the new-tab content offset reserved the full input-widget height — including the part of the widget below the NTP container — leaving a dead gap.

Now the offset reserves only the height by which the input card overlaps the content, so NTP content (and the Dax) sits at the input card's top. The DAX_END Dax is also nudged right (bottom address bar only) so both legs tuck behind the card. The DUCK_AI_DAX_END Dax doesn't need similar nudge, because it is shown on top of input toggle, which is wider and covers his legs already.

Steps to test this PR

Onboarding end CTA — bottom address bar

  • [ ] Set the address bar to the bottom, then run onboarding to the end ("You've got this") CTA
  • [ ] Confirm the Dax sits flush against the input field with both legs behind it — no gap, no cut-off body

Top address bar (regression)

  • [ ] Repeat with the address bar at the top and confirm the Dax is unchanged

UI changes

Before After
Screenshot_20260622_161555 Screenshot_20260622_145921

[!NOTE] Low Risk Localized UI layout and onboarding CTA positioning; no auth, data, or API changes.

Overview Fixes the onboarding “You've got this” end CTA when the address bar is at the bottom with the native input widget: waving Dax was floating above the field with his body cut off because new-tab content reserved padding for the full widget height instead of only the overlap with the input card.

NativeInputLayoutCoordinator now computes bottom content padding from how far each target view extends below the input card’s top (using window positions for the card and content), including during widget enter/exit animation frames. That removes the dead gap under the card so NTP/onboarding content—and Dax—sit flush with the card top.

DaxEndBrandDesignUpdateBubbleCta receives isOmnibarBottom from CtaViewModel and nudges Dax slightly right (-30dp vs -40dp) on bottom omnibar only so both legs tuck behind the narrower address bar.

Reviewed by Cursor Bugbot for commit cbd98385b99860e7af01333a267e757b8959a9c7. Bugbot is set up for automated code reviews on this repo. Configure here.

lmac012 avatar Jun 22 '26 14:06 lmac012