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

Fix width of input element on New Bookmark Folder form #5837

Closed
wants to merge 2 commits into from
Closed

Fix width of input element on New Bookmark Folder form #5837

wants to merge 2 commits into from

Conversation

stefankolb
Copy link
Contributor

Fix #5192

Both input elements on the New Bookmark Folder form have the following
CSS properties set:

  • width: 100%;
  • max-width: 250px;
  • padding: 0 5px;

The default value for box-sizing is content-box (see
https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing). This
causes the input field for the bookmark folder's title to be 100% +
5px + 5px (width + padding left + padding right) wide. However, the
padding is not applied to the select field for parent folder selection,
causing the field to be only 100% wide (without the padding).

Using border-box as value for the box-sizing attribute for both form
fields renders them at an equal width.

Test Plan:

  1. Open Brave
  2. In the menu bar open the Bookmarks menu and click on Bookmarks Manager...
  3. Click on the Add Folder icon in the left pane
  4. Make sure both form fields (Title and Folder) have the same width (see screenshot 1 below)

screenshot 1:
screenshot_fix-5192

@bbondy
Copy link
Member

bbondy commented Nov 26, 2016

@alexwykoff @srirambv @luixxiul could one of you check if this has any other effects especially on other forms?

@luixxiul
Copy link
Contributor

luixxiul commented Dec 1, 2016

@bbondy @stefankolb it would be nice if this should fix the bookmark dialog which appears by clicking the star icon next to the URL bar.

clipboard01

@luixxiul luixxiul self-assigned this Dec 3, 2016
stefankolb and others added 2 commits December 3, 2016 19:15
Fix #5192

Both input elements on the New Bookmark Folder form have the following
CSS properties set:

 * width: 100%;
 * max-width: 250px;
 * padding: 0 5px;

The default value for box-sizing is content-box (see
https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing). This
causes the input field for the bookmark folder's title to be 100% +
5px + 5px (width + padding left + padding right) wide. However, the
padding is not applied to the select field for parent folder selection,
causing the field to be only 100% wide (without the padding).

Using border-box as value for the box-sizing attribute for both form
fields renders them at an equal width.
@luixxiul
Copy link
Contributor

luixxiul commented Dec 3, 2016

ok, it's good for review.

screenshot 2016-12-03 19 26 56

@bsclifton
Copy link
Member

@jkup ready for you to check out 😄

@stefankolb knocked out this request (thanks!) and then @luixxiul had some touchups

@luixxiul
Copy link
Contributor

luixxiul commented Dec 6, 2016

The two commits were cherry-picked in #6035

@luixxiul luixxiul closed this Dec 6, 2016
@luixxiul luixxiul removed this from the 0.13.0 milestone Dec 6, 2016
@stefankolb stefankolb deleted the fix/#5192 branch December 8, 2016 17:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

width of input and select elements on new bookmark folder form is not equal
5 participants