VOOZH about

URL: https://phabricator.services.mozilla.com/D303241

⇱ ⚙ D303241 Bug 2033583 - [Nova] Update the urlbar for compact mode.


Bug 2033583 - [Nova] Update the urlbar for compact mode.
ClosedPublic

Authored by adw on Fri, May 29, 12:39 AM.
Referenced Files
F72960695: D303241.1781832676.diff
Thu, Jun 18, 1:31 AM
F72958098: D303241/new/.1781830222.diff
Thu, Jun 18, 12:50 AM
F72918381: D303241.1781791288.diff
Wed, Jun 17, 2:01 PM
F72889301: D303241.1781751088.diff
Wed, Jun 17, 2:51 AM
Unknown Object (File)
Tue, Jun 16, 9:52 AM
Unknown Object (File)
Mon, Jun 15, 9:28 AM
Unknown Object (File)
Sat, Jun 13, 10:09 AM
Unknown Object (File)
Fri, Jun 12, 10:07 PM
Subscribers

Details

Summary

Please see the bug for notes on the intended design. Summary:

Add more variables to to accommodate Nova compact mode.

I kept the bottom border radius of the background the same as it is in
non-compact mode since I don't think that's intended to change. When the view is
open, the top radius needs to be smaller so it matches the top radius of the
input.

Move the existing definition up to where all the
other variables are defined and rename it
so it's clearer it's only used when the breakout is active.

In , in order to compensate for the row gutter, set all the
margins of rather than only the inline margins. The gutter goes
all the way around each row, not only the sides. That lets us remove the rule in
with the "Rely on the height of urlbar" comment.

One-offs tweaks: We should probably remove the one-offs from Nova but for now
make sure they look OK in both compact and non-compact mode. (a) Give them
enough inline margin to account for the larger border radius of the
view/background in Nova. (b) The is needed to unset
set elsewhere, which makes the one-offs overflow the view width with the margin
applied.

Depends on D301257, D302682

Diff Detail

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
Comment Actions

Don't add to when there are no results

adw planned changes to this revision.Fri, May 29, 6:59 AM
Comment Actions

Needs more work

adw edited the summary of this revision. (Show Details)
Comment Actions

Rebase on D302682, which lets me set a proper border radius on the urlbar-background in compact mode when is active

Comment Actions

Thank you very much!

question:


Please see the screenshot. When the one-off buttons are shown, there doesn't seem to be any margin around them. Should we add some?
browser/themes/shared/urlbar-searchbar.css
80

question:
Should we use since we decided to use it for ?

adw marked an inline comment as done.
adw edited the summary of this revision. (Show Details)
Comment Actions
  • Address comments:
    • Use rather than
    • We should probably remove the one-offs from Nova but for now make sure they look OK in both compact and non-compact mode: (a) Give them enough inline margin to account for the larger border radius of the view/background in Nova, (b) the is needed to unset set elsewhere, which makes the one-offs overflow the view width with the margin applied
  • Rename some of the new variables, rework some of the new rules
  • Rebase on D301257 (in addition to D302682 as before)
Comment Actions

Thanks!

browser/themes/shared/urlbar-searchbar.css
77

suggestion:
Might be worth adding a comment on why we need this?

This revision is now accepted and ready to land.Thu, Jun 4, 3:38 PM
adw marked an inline comment as done.
adw edited the summary of this revision. (Show Details)
Comment Actions

Add a comment for

This revision was landed with ongoing or failed builds.Thu, Jun 4, 11:54 PM
This revision was automatically updated to reflect the committed changes.

Revision Contents

PathSize
browser/
themes/
shared/
35 lines
urlbar/
14 lines
CommitTreeParentsAuthorSummaryDate
0b7a725bc8fbeaf68e6c4f05Drew Willcoxon
Bug 2033583 - [Nova] Update the urlbar for compact mode. r=daisuke,dao,desktop… (Show More…)

Diff 1292693

browser/themes/shared/urlbar-searchbar.css

Loading...

browser/themes/shared/urlbar/view-nova.css

Loading...