Commit 4405ce23 authored by Randall Leeds's avatar Randall Leeds

Use separate icon for toolbar hide/show

parent 1c2049ea
No preview for this file type
This diff is collapsed.
This diff is collapsed.
......@@ -29,7 +29,7 @@ class Annotator.Plugin.Toolbar extends Annotator.Plugin
items = [
"title": "Toggle Sidebar"
"class": "annotator-toolbar-toggle h-icon-arrow-back"
"class": "annotator-toolbar-toggle"
"on":
"click": (event) =>
event.preventDefault()
......
......@@ -64,11 +64,22 @@ module.exports = class Annotator.Host extends Annotator.Guest
@frame.addClass 'annotator-no-transition'
@frame.removeClass 'annotator-collapsed'
if @toolbar?
@toolbar.find('.annotator-toolbar-toggle')
.removeClass('h-icon-arrow-back')
.addClass('h-icon-arrow-forward')
hideFrame: ->
@frame.css 'margin-left': ''
@frame.removeClass 'annotator-no-transition'
@frame.addClass 'annotator-collapsed'
if @toolbar?
@toolbar.find('.annotator-toolbar-toggle')
.removeClass('h-icon-arrow-forward')
.addClass('h-icon-arrow-back')
_addCrossFrameListeners: ->
@crossframe.on('showFrame', this.showFrame.bind(this, null))
@crossframe.on('hideFrame', this.hideFrame.bind(this, null))
......
......@@ -106,17 +106,8 @@ $base-font-size: 14px;
z-index: 2147483638;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
.h-icon-arrow-back {
transform: rotate(180deg);
font-weight: 600;
}
&.annotator-collapsed {
margin-left: 0;
.h-icon-arrow-back {
transform: rotate(0deg);
}
}
* {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment