diff --git a/browser/components/RealtimeNotification.js b/browser/components/RealtimeNotification.js
index dcd04586..3a6bcc27 100644
--- a/browser/components/RealtimeNotification.js
+++ b/browser/components/RealtimeNotification.js
@@ -45,7 +45,7 @@ class RealtimeNotification extends React.Component {
: ''
return (
-
{link}
+ {link}
)
}
}
diff --git a/browser/components/RealtimeNotification.styl b/browser/components/RealtimeNotification.styl
index 9b1643ba..ebbbed93 100644
--- a/browser/components/RealtimeNotification.styl
+++ b/browser/components/RealtimeNotification.styl
@@ -3,21 +3,21 @@
font-size 12px
position absolute
bottom 0px
+ right 0px
background-color #EBEBEB
- width 100vw
height 30px
+ line-height 30px
text-align center
.notification-link
+ display inline-block
+ line-height normal
text-decoration none
color #282A36
border 1px solid #6FA8E6
background-color alpha(#6FA8E6, 0.2)
padding 3px 9px
border-radius 2px
- position absolute
- bottom 4px
- margin-left -10%
transition 0.2s
&:hover
color #1378BD
@@ -32,4 +32,4 @@ body[data-theme="dark"]
background-color alpha(#5CB85C, 0.2)
transition 0.2s
&:hover
- color #5CB85C
\ No newline at end of file
+ color #5CB85C
diff --git a/browser/main/Main.js b/browser/main/Main.js
index ed5904d5..2868e6a8 100644
--- a/browser/main/Main.js
+++ b/browser/main/Main.js
@@ -21,6 +21,7 @@ function focused () {
}
class Main extends React.Component {
+
constructor (props) {
super(props)
@@ -189,6 +190,17 @@ class Main extends React.Component {
render () {
let { config } = this.props
+ // the width of the navigation bar when it is folded/collapsed
+ const foldedNavigationWidth = 44
+ let notificationBarOffsetLeft
+ if (this.state.fullScreen) {
+ notificationBarOffsetLeft = 0
+ } else if (config.isSideNavFolded) {
+ notificationBarOffsetLeft = foldedNavigationWidth
+ } else {
+ notificationBarOffsetLeft = this.state.navWidth
+ }
+
return (
-
+
)
}