Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

display:flex ignores actual width of the buttons #11201

Closed
luixxiul opened this issue Sep 28, 2017 · 0 comments · Fixed by #11202
Closed

display:flex ignores actual width of the buttons #11201

luixxiul opened this issue Sep 28, 2017 · 0 comments · Fixed by #11202

Comments

@luixxiul
Copy link
Contributor

luixxiul commented Sep 28, 2017

Test plan

#11202 (comment)


Description

display:flex ignores actual width of the buttons.

See the feedback comment by @srirambv on #10951 (review).

When you have elements which have both width and min-width specified with fit-content, which is actually larger than the fixed width, and the elements are placed with display: flex or display: grid, the elements overwrap each other because the preferred value is width, not min-width.

I personally believe it should be a bug of specification or implementation, though.

Steps to Reproduce

  1. Open about:history

Actual result:

The button and the search form overwrap each other.

Expected result:

They should not overwrap each other.

Reproduces how often: [What percentage of the time does it reproduce?]

Brave Version

about:brave info:

0.21. The bug was introduced with #10934

Reproducible on current live release:

No.

Additional Information

@luixxiul luixxiul added this to the 0.21.x (Nightly Channel) milestone Sep 28, 2017
@luixxiul luixxiul self-assigned this Sep 28, 2017
@luixxiul luixxiul changed the title display:flex does not take the account of actual width of the buttons display:flex ignores actual width of the buttons Sep 29, 2017
@bbondy bbondy modified the milestones: 0.21.x (Developer Channel), 0.20.x (Beta Channel) Oct 25, 2017
syuan100 pushed a commit to syuan100/browser-laptop that referenced this issue Nov 9, 2017
Fixes brave#11201

Only BrowserButton with 'fitContent' props are forced to have the min-width:fit-content. This change is required to apply display:flex to headerActions, as it refers width instead of min-width, even though actual min-width is larger than actual width of the buttons.

- Align header items on about:history (fixes brave#10465)
- Polish .searchInput on about:bookmarks and about:history (addresses brave#10898 and brave#10899)

Auditors: @cezaraugusto

Test Plan:
1. Open about:history
2. Open about:bookmarks
3. Make sure the header items are not wrapped

Test Plan 2:
1. Open https://expired.badssl.com/
2. Minimize the window's width
3. Make sure the buttons' text do not overflow
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.