Skip to content

Commit ce52d5c

Browse files
committed
improve style of StatusBar & display pathname from StatusBar
1 parent da19066 commit ce52d5c

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

browser/main/StatusBar/StatusBar.styl

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
.root
22
absolute bottom left right
3-
height 24px
3+
height $statusBar-height
44
border-top $ui-border
55
background-color $ui-backgroundColor
66

7+
.pathname
8+
absolute left
9+
height 24px
10+
overflow ellipsis
11+
width 350px
12+
line-height 24px
13+
font-size 12px
14+
padding 0 15px
15+
color $ui-inactive-text-color
16+
717
.zoom
818
navButtonColor()
919
absolute right
@@ -21,3 +31,8 @@
2131
border-width 0 0 0 1px
2232
border-style solid
2333
border-color $ui-borderColor
34+
&:active .update-icon
35+
color white
36+
37+
.update-icon
38+
color $brand-color

browser/main/StatusBar/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@ class StatusBar extends React.Component {
4949
}
5050

5151
render () {
52-
let { config } = this.props
52+
let { config, location } = this.props
53+
5354
return (
5455
<div className='StatusBar'
5556
styleName='root'
5657
>
58+
<div styleName='pathname'>{location.pathname}</div>
5759
{this.state.updateAvailable
5860
? <button onClick={this.updateApp} styleName='update'>
59-
<i className='fa fa-cloud-download'/> Update is available!
61+
<i styleName='update-icon' className='fa fa-cloud-download'/> Update is available!
6062
</button>
6163
: null
6264
}

0 commit comments

Comments
 (0)