0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

dropdown classes fix

This commit is contained in:
Víctor Losada Hernández
2024-03-06 19:43:44 +01:00
parent b2b276c3a3
commit dbe60e3ff1
7 changed files with 8 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ const Account = createClass({
render : function(){
// Logged in
if(global.account){
return <Nav.dropdown className="account">
return <Nav.dropdown>
<Nav.item
className='account username'
color='orange'

View File

@@ -6,7 +6,7 @@ const dedent = require('dedent-tabs').default;
const Nav = require('naturalcrit/nav/nav.jsx');
module.exports = function(props){
return <Nav.dropdown className="help">
return <Nav.dropdown>
<Nav.item color='grey' icon='fas fa-question-circle'>
need help?
</Nav.item>

View File

@@ -33,7 +33,7 @@ const NewBrew = () => {
};
return (
<Nav.dropdown className='new'>
<Nav.dropdown>
<Nav.item
className='new'
color='purple'

View File

@@ -165,7 +165,7 @@ const RecentItems = createClass({
},
render : function(){
return <Nav.dropdown className='recent'>
return <Nav.dropdown>
<Nav.item icon='fas fa-history' color='grey' >
{this.props.text}
</Nav.item>

View File

@@ -355,14 +355,14 @@ const EditPage = createClass({
{this.renderGoogleDriveIcon()}
{this.state.error ?
<ErrorNavItem error={this.state.error} parent={this}></ErrorNavItem> :
<Nav.dropdown className='save-menu'>
<Nav.dropdown>
{this.renderSaveButton()}
{this.renderAutoSaveButton()}
</Nav.dropdown>
}
<NewBrew />
<HelpNavItem/>
<Nav.dropdown className="share">
<Nav.dropdown>
<Nav.item color='teal' icon='fas fa-share-alt'>
share
</Nav.item>

View File

@@ -60,7 +60,7 @@ const SharePage = createClass({
<Nav.section>
{this.props.brew.shareId && <>
<PrintLink shareId={this.processShareId()} />
<Nav.dropdown className="source">
<Nav.dropdown>
<Nav.item color='red' icon='fas fa-code'>
source
</Nav.item>

View File

@@ -104,7 +104,7 @@ const Nav = {
});
return (
<div className={`navDropdownContainer ${props.className}`}
<div className={`navDropdownContainer ${props.className? props.className : ""}`}
ref={myRef}
onMouseEnter = { props.trigger.includes('hover') ? ()=>handleDropdown(true) : undefined }
onMouseLeave = { props.trigger.includes('hover') ? ()=>handleDropdown(false) : undefined }