Fix jitter on icon change
This commit is contained in:
parent
ad77fd7ea0
commit
a5febca9ce
@ -380,10 +380,14 @@ html, body {
|
|||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.headerIcon.nonClickable {
|
||||||
|
margin-left: 4px;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.headerIcon.iconButton {
|
.headerIcon.iconButton {
|
||||||
padding: 0;
|
width: 24px;
|
||||||
width: 16px;
|
height: 28px;
|
||||||
height: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
(cond
|
(cond
|
||||||
(:loading state) (list (components/sidebar-header (components/with-classes
|
(:loading state) (list (components/sidebar-header (components/with-classes
|
||||||
(components/header-icon "icons/icon48.png")
|
(components/header-icon "icons/icon48.png")
|
||||||
"headerIcon"))
|
"headerIcon" "nonClickable"))
|
||||||
(components/sidebar-content (components/loader)))
|
(components/sidebar-content (components/loader)))
|
||||||
(:item state) (list
|
(:item state) (list
|
||||||
(components/sidebar-header (dom/createDom
|
(components/sidebar-header (dom/createDom
|
||||||
@ -148,7 +148,7 @@
|
|||||||
(:hits state) (list
|
(:hits state) (list
|
||||||
(components/sidebar-header (components/with-classes
|
(components/sidebar-header (components/with-classes
|
||||||
(components/header-icon "icons/icon48.png")
|
(components/header-icon "icons/icon48.png")
|
||||||
"headerIcon"))
|
"headerIcon" "nonClickable"))
|
||||||
(apply
|
(apply
|
||||||
components/sidebar-content
|
components/sidebar-content
|
||||||
(map (fn [hit]
|
(map (fn [hit]
|
||||||
|
Loading…
Reference in New Issue
Block a user