mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-14 08:32:44 +00:00
Added a chrome detection tip to the status bar and updated the welcome text
This commit is contained in:
@@ -74,6 +74,16 @@ var Statusbar = React.createClass({
|
||||
|
||||
},
|
||||
|
||||
renderChromeTip : function(){
|
||||
if(typeof window !== 'undefined' && window.chrome) return;
|
||||
return <div
|
||||
className='chromeField'
|
||||
data-tooltip="If you are noticing rendering issues, try using Chrome instead.">
|
||||
<i className='fa fa-exclamation-triangle' />
|
||||
Optimized for Chrome
|
||||
</div>
|
||||
},
|
||||
|
||||
renderSourceButton : function(){
|
||||
if(!this.props.sourceText) return null;
|
||||
|
||||
@@ -146,6 +156,7 @@ var Statusbar = React.createClass({
|
||||
</a>
|
||||
</div>
|
||||
<div className='controls right'>
|
||||
{this.renderChromeTip()}
|
||||
{this.renderChangelogButton()}
|
||||
{this.renderStatus()}
|
||||
{this.renderInfo()}
|
||||
|
||||
@@ -58,6 +58,14 @@
|
||||
background-color : fade(@green, 70%);
|
||||
}
|
||||
}
|
||||
.chromeField{
|
||||
background-color: @orange;
|
||||
color : white;
|
||||
text-decoration : none;
|
||||
i{
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
.changelogButton{
|
||||
.animate(background-color);
|
||||
color : white;
|
||||
|
||||
Reference in New Issue
Block a user