0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-08-09 12:45:01 +00:00

restore styling to work with new structure.

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Gazook89
2026-04-23 22:10:51 -05:00
parent 4f953da0fe
commit 8bebbdac5d
3 changed files with 82 additions and 92 deletions
@@ -336,7 +336,7 @@ const SnippetGroup = createReactClass({
return _.map(snippets, (snippet)=>{
if(!snippet.subsnippets){
return (
<div className='snippet' key={snippet.name} onClick={(e)=>this.handleSnippetClick(e, snippet)}>
<div className='menu-item' key={snippet.name} onClick={(e)=>this.handleSnippetClick(e, snippet)}>
<i className={snippet.icon} />
<span className={`name${snippet.disabled ? ' disabled' : ''}`} title={snippet.name}>{snippet.name}</span>
{snippet.experimental && <span className='beta'>beta</span>}
@@ -345,7 +345,7 @@ const SnippetGroup = createReactClass({
);
} else if(snippet.subsnippets){
return (
<Dropdown groupName={snippet.name} className='dropdown side'>
<Dropdown groupName={snippet.name}>
{this.renderSnippets(snippet.subsnippets)}
</Dropdown>
)
@@ -355,8 +355,7 @@ const SnippetGroup = createReactClass({
},
render : function(){
const snippetGroup = `snippetGroup snippetBarButton ${this.props.snippets.length === 0 ? 'disabledSnippets' : ''}`;
return <Dropdown groupName={this.props.groupName} id={this.props.groupName} icon={this.props.icon} className={snippetGroup}>
return <Dropdown groupName={this.props.groupName} id={this.props.groupName} icon={this.props.icon}>
{this.renderSnippets(this.props.snippets)}
</Dropdown>;
},