Tag selector UI tweaks

- Don't cut off bottom of tags on Windows
- Fix appearance of search bar on Windows/Linux
- Fix cancel button on Windows/Linux
- Don't cut off right-hand pane of bottom bar when narrowing pane
This commit is contained in:
Dan Stillman 2019-03-29 01:45:32 -04:00
parent f7f10c7405
commit 3126c58d30
9 changed files with 23 additions and 8 deletions

View file

@ -3,6 +3,7 @@ const PropTypes = require('prop-types');
const { FormattedMessage } = require('react-intl'); const { FormattedMessage } = require('react-intl');
var { Collection } = require('react-virtualized'); var { Collection } = require('react-virtualized');
// See also .tag-selector-item in _tag-selector.scss
var filterBarHeight = 32; var filterBarHeight = 32;
var tagPaddingTop = 4; var tagPaddingTop = 4;
var tagPaddingLeft = 2; var tagPaddingLeft = 2;

View file

@ -1,21 +1,16 @@
.search { .search {
position: relative; position: relative;
min-width: 40px;
} }
.search input { .search input {
-moz-appearance: searchfield;
flex: 1 0; flex: 1 0;
min-width: 40px; min-width: 40px;
height: 24px;
padding-left: 4px; padding-left: 4px;
} }
.search .search-cancel-button { .search .search-cancel-button {
background-image: url(chrome://global/skin/icons/searchfield-cancel.svg);
position: absolute; position: absolute;
width: 14px;
height: 14px;
top: 6px;
right: 6px; right: 6px;
cursor: default; cursor: default;
} }

View file

@ -74,7 +74,7 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: pre; white-space: pre;
padding: 1px 4px 3px; padding: 1px 4px 3px; // See also tag-list.jsx
&.colored { &.colored {
font-weight: bold; font-weight: bold;

6
scss/linux/_search.scss Normal file
View file

@ -0,0 +1,6 @@
.search .search-cancel-button {
background-image: url(chrome://global/skin/icons/input-clear.svg);
width: 14px;
height: 14px;
top: 8px;
}

9
scss/mac/_search.scss Normal file
View file

@ -0,0 +1,9 @@
.search input {
-moz-appearance: searchfield;
height: 24px;
}
.search .search-cancel-button {
background-image: url(chrome://global/skin/icons/searchfield-cancel.svg);
top: 6px;
}

View file

@ -11,5 +11,5 @@
flex: none; flex: none;
border: 0; border: 0;
margin-right: 3px; margin-right: 3px;
padding: 0 6px; padding: 1px 6px 0;
} }

View file

@ -5,4 +5,5 @@
// -------------------------------------------------- // --------------------------------------------------
@import "mac/button"; @import "mac/button";
@import "mac/search";
@import "mac/tag-selector"; @import "mac/tag-selector";

View file

@ -4,3 +4,4 @@
// Linux specific // Linux specific
// -------------------------------------------------- // --------------------------------------------------
@import "linux/search";

View file

@ -4,3 +4,5 @@
// Windows specific // Windows specific
// -------------------------------------------------- // --------------------------------------------------
@import "win/search";
@import "win/tag-selector";