Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to add 4px left margin to tab icons #30469

Closed
bradleyrichter opened this issue May 19, 2023 · 13 comments · Fixed by brave/brave-core#18728
Closed

Need to add 4px left margin to tab icons #30469

bradleyrichter opened this issue May 19, 2023 · 13 comments · Fixed by brave/brave-core#18728

Comments

@bradleyrichter
Copy link

bradleyrichter commented May 19, 2023

Description

Left margin on tabs became smaller. Icons nearly touching tab ear left edge.

Steps to Reproduce

  1. open a lot of tabs. Enough to fill your window width so they shrink enough.
  2. notice icons (round is more obvious) are too close to the left edge of the tab ear

Actual result:

image

image

Expected result:

image

Reproduces how often:

I don't know how long it has been this way.

Brave version (brave://version info)

[Version 1.51.114 Chromium: 113.0.5672.92 (Official Build) (arm64)

Version/Channel Information:

  • Can you reproduce this issue with the current release?
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the nightly channel?

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • Does the issue resolve itself when disabling Brave Rewards?
  • Is the issue reproducible on the latest version of Chrome?

Miscellaneous Information:

@rebron rebron added feature/tabs-bar audio priority/P3 The next thing for us to work on. It'll ride the trains. QA/Yes labels May 19, 2023
@BrendanEich
Copy link
Member

I reported to brad but wondered if anyone else reported sooner, and how we defend against this kind of regression vs. upstream. Thanks.

@petemill
Copy link
Member

Is it definitely a regression, i.e. something we changed from upstream?

As for defending, perhaps a visual diff during PRs is an all-encompassing way to highlight any unexpected changes.

@simonhong simonhong self-assigned this May 20, 2023
@BrendanEich
Copy link
Member

A visual diff might need to be fuzzy matcher, but not too fuzzy ;-).

@rebron rebron removed their assignment May 30, 2023
@simonhong
Copy link
Member

simonhong commented May 30, 2023

This is upstream behavior. Not a regression.
Upstream has extra 4px left padding before icon when available width is sufficient for showing close button.
This extra 4px padding is intended to visually balalnce the close button.
Screenshot 2023-05-30 at 3 52 58 PM... Screenshot 2023-05-31 at 2 25 13 PM

and that padding is gone with insufficient width from inactive tab.
Active tab still have close button w/o extra padding but it seems ok because it has more wider space than us at left side.
Screenshot 2023-05-30 at 3 53 09 PM... Screenshot 2023-05-31 at 2 25 04 PM

Brave also have same layout logic. We should have this extra left 4px padding when close button and icon is visible.
Screenshot 2023-05-30 at 3 57 18 PM
Screenshot 2023-05-30 at 4 00 35 PM

alert icon also needs extra padding when close button is visible.
Screenshot 2023-05-31 at 1 57 57 PM
Screenshot 2023-05-31 at 1 58 17 PM

When always give extra padding, icon and close button get too closed. Need to adjust the distance.
image

Should we give extra padding to title also for balancing with close button?
image

@simonhong
Copy link
Member

@bradleyrichter How about this?

Screen.Recording.2023-06-02.at.1.15.32.PM.mov

@kjozwiak
Copy link
Member

The above requires 1.53.96 or higher for 1.53.x verification 👍

@LaurenWags
Copy link
Member

Verified using

Brave | 1.53.100 Chromium: 114.0.5735.133 (Official Build) beta (x86_64)
-- | --
Revision | fbfa2ce68d01b2201d8c667c2e73f648a61c4f4a-refs/branch-heads/5735@{#1270}
OS | macOS Version 13.4 (Build 22F66)

Reproduced the original issue using the STR/Cases outlined via #30469 (comment) running 1.52.126 Chromium: 114.0.5735.133 as per the following:

1 52 x 1
1 52 x 2

Notice how close the icons are to the left margins as mentioned via the original issue.

Verified that the margins have been increased using the STR/Cases outlined via #30469 (comment) as per the following:

1 53 x 1 1 53 x 2

@MadhaviSeelam
Copy link

Verification PASSED using

Brave | 1.53.102 Chromium: 114.0.5735.133 (Official Build) (64-bit)
-- | --
Revision | fbfa2ce68d01b2201d8c667c2e73f648a61c4f4a-refs/branch-heads/5735@{#1270}
OS | Windows 11 Version 22H2 (Build 22621.1848)

Reproduced the original issue, that the icons are close to the left margins of the tab, as mentioned using the STR/Cases outlined via #30469 (comment) running 1.52.126 Chromium: 114.0.5735.133 as per the following:

image
image

Confirmed that the margins have been increased using the STR/Cases outlined via #30469 (comment) as per the following:

image
image

@MadhaviSeelam
Copy link

Verification PASSED using

Brave | 1.53.102 Chromium: 114.0.5735.133 (Official Build) (64-bit)
-- | --
Revision | fbfa2ce68d01b2201d8c667c2e73f648a61c4f4a-refs/branch-heads/5735@{#1270}
OS | Linux

Reproduced the original issue, that the icons are close to the left margins of the tab, as mentioned using the STR/Cases outlined via #30469 (comment) running 1.52.126 Chromium: 114.0.5735.1331.52.126 Chromium: 114.0.5735.133 as per the following:

Screenshot from 2023-06-22 15-53-45-1
Screenshot from 2023-06-22 15-57-54-1

Confirmed that the margins have been increased using the STR/Cases outlined via #30469 (comment) as per the following:

Screenshot from 2023-06-22 16-39-36
Screenshot from 2023-06-22 16-38-49

emerick pushed a commit to brave/brave-core that referenced this issue Jul 5, 2023
kjozwiak pushed a commit to brave/brave-core that referenced this issue Jul 5, 2023
Give extra left side padding always to tab view

fix brave/brave-browser#30469

Co-authored-by: Simon Hong <[email protected]>
@kjozwiak
Copy link
Member

kjozwiak commented Jul 5, 2023

The above requires 1.52.130 or higher for 1.52.x verification 👍 Removing the QA Pass labels as we'll need to recheck against 1.52.x.

@LaurenWags LaurenWags added the QA/In-Progress Indicates that QA is currently in progress for that particular issue label Jul 6, 2023
@LaurenWags
Copy link
Member

Verified using

Brave | 1.52.130 Chromium: 114.0.5735.198 (Official Build) (x86_64)
-- | --
Revision | c3029382d11c5f499e4fc317353a43d411a5ce1c-refs/branch-heads/5735@{#1394}
OS | macOS Version 13.4.1 (Build 22F82)

Reproduced the original issue using the STR/Cases outlined via #30469 (comment) running 1.52.129 Chromium: 114.0.5735.198 as per the following:

1 2

Notice how close the icons are to the left margins as mentioned via the original issue.

Verified that the margins have been increased using the STR/Cases outlined via #30469 (comment) as per the following:

3 4

@LaurenWags LaurenWags added QA Pass-macOS and removed QA/In-Progress Indicates that QA is currently in progress for that particular issue labels Jul 6, 2023
@MadhaviSeelam
Copy link

Verification PASSED using

Brave | 1.52.130 Chromium: 114.0.5735.198 (Official Build) (64-bit)
-- | --
Revision | c3029382d11c5f499e4fc317353a43d411a5ce1c-refs/branch-heads/5735@{#1394}
OS | Linux

Reproduced the original issue, that the icons are close to the left margins of the tab, as mentioned using the STR/Cases outlined via #30469 (comment) running 1.52.129 Chromium: 114.0.5735.198 as per the following:

Screenshot from 2023-07-06 09-02-49
Screenshot from 2023-07-06 09-03-48

Confirmed that the margins have been increased using the STR/Cases outlined via #30469 (comment) as per the following:

Screenshot from 2023-07-06 09-12-33
image

@stephendonner
Copy link

stephendonner commented Jul 6, 2023

Verified PASSED using

Brave	1.52.130 Chromium: 114.0.5735.198 (Official Build) (64-bit) 
Revision	c3029382d11c5f499e4fc317353a43d411a5ce1c-refs/branch-heads/5735@{#1394}
OS	Windows 10 Version 22H2 (Build 19045.3155)

Reproduced the original issue, that the icons are close to the left margins of the tab, as mentioned using the STR/Cases outlined via #30469 (comment) running 1.52.129 Chromium: 114.0.5735.198 as per the following:

1.52.129

Screen Shot 2023-07-06 at 12 19 00 PM

Confirmed that the margins have been increased using the STR/Cases outlined via #30469 (comment) as per the following:

1.52.130

Screen Shot 2023-07-06 at 12 19 28 PM

Fullscreen shots

image
image (1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment