From 992b72ee6f966edf0d629550e108369753267e7e Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Thu, 23 Apr 2026 22:17:52 -0500 Subject: [PATCH] empty menus styled as disabled --- client/components/dropdown/dropdown.jsx | 1 + client/homebrew/editor/snippetbar/snippetbar.less | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/client/components/dropdown/dropdown.jsx b/client/components/dropdown/dropdown.jsx index e27303eb6..a2a12015d 100644 --- a/client/components/dropdown/dropdown.jsx +++ b/client/components/dropdown/dropdown.jsx @@ -56,6 +56,7 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, i icon={icon} aria-haspopup='menu' role='menuitem' + disabled={children.length > 0 ? false : true} > {trigger(groupName)} diff --git a/client/homebrew/editor/snippetbar/snippetbar.less b/client/homebrew/editor/snippetbar/snippetbar.less index 80662becc..909476163 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.less +++ b/client/homebrew/editor/snippetbar/snippetbar.less @@ -220,6 +220,11 @@ &:hover { background-color : #999999; } + &:disabled { + color: gray; + cursor: not-allowed; + &:hover { background-color: unset; } + } } .disabledSnippets { color: grey;