Fix jitter on icon change

This commit is contained in:
Jeremy Dormitzer 2018-01-30 23:50:33 -07:00
parent ad77fd7ea0
commit a5febca9ce
No known key found for this signature in database
GPG Key ID: 04F17C0F5A32C320
2 changed files with 9 additions and 5 deletions

View File

@ -380,10 +380,14 @@ html, body {
margin-right: 4px;
}
.headerIcon.nonClickable {
margin-left: 4px;
margin-right: 8px;
}
.headerIcon.iconButton {
padding: 0;
width: 16px;
height: 20px;
width: 24px;
height: 28px;
}
.spinner {

View File

@ -81,7 +81,7 @@
(cond
(:loading state) (list (components/sidebar-header (components/with-classes
(components/header-icon "icons/icon48.png")
"headerIcon"))
"headerIcon" "nonClickable"))
(components/sidebar-content (components/loader)))
(:item state) (list
(components/sidebar-header (dom/createDom
@ -148,7 +148,7 @@
(:hits state) (list
(components/sidebar-header (components/with-classes
(components/header-icon "icons/icon48.png")
"headerIcon"))
"headerIcon" "nonClickable"))
(apply
components/sidebar-content
(map (fn [hit]