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

Commit 94be03e

Browse files
stefankolbSuguru Hirahara
authored and
Suguru Hirahara
committed
Fix width of input element on New Bookmark Folder form
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.
1 parent d3a6330 commit 94be03e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

less/forms.less

+1
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601

602602
input,
603603
select {
604+
box-sizing: border-box;
604605
display: block;
605606
width: 100%;
606607
max-width: 250px;

0 commit comments

Comments
 (0)