0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 09:02:37 +00:00

Extra classes were needed for .recent and .save

.save has special styling for the "on" button.

.recent has special styling for the dividers between Edited and Viewed
This commit is contained in:
Trevor Buckner
2024-03-06 15:32:38 -05:00
parent f172d02920
commit 58422569c9
4 changed files with 5 additions and 4 deletions

View File

@@ -271,7 +271,8 @@
position : relative;
box-sizing : border-box;
display : block;
max-height : ~'calc(100vh - 28px)';
max-width : 15em;
max-height : ~'calc(100vh - 28px)';
padding : 8px 5px 13px;
overflow : hidden auto;
color : white;

View File

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

View File

@@ -355,7 +355,7 @@ const EditPage = createClass({
{this.renderGoogleDriveIcon()}
{this.state.error ?
<ErrorNavItem error={this.state.error} parent={this}></ErrorNavItem> :
<Nav.dropdown>
<Nav.dropdown className='save-menu'>
{this.renderSaveButton()}
{this.renderAutoSaveButton()}
</Nav.dropdown>

View File

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