From 4feb1bdd809b8de7cf65698ca81c24bbbb645bf6 Mon Sep 17 00:00:00 2001 From: fujie Date: Mon, 16 Mar 2026 00:02:53 +0800 Subject: [PATCH] feat(smart-mind-map): add GitHub star icon to header controls - Add prominent star icon in download button group linking to repository - Style with gold gradient color (#fbbf24) for visibility - Hover effect with scale and glow for better UX - Icon uses yellow color (#fbbf24) with transparent background - Helps users easily discover and support the project Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../actions/smart-mind-map/smart_mind_map.py | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/plugins/actions/smart-mind-map/smart_mind_map.py b/plugins/actions/smart-mind-map/smart_mind_map.py index 9dfa969..a0b1017 100644 --- a/plugins/actions/smart-mind-map/smart_mind_map.py +++ b/plugins/actions/smart-mind-map/smart_mind_map.py @@ -690,6 +690,29 @@ CSS_TEMPLATE_MINDMAP = """ text-decoration: none; border-bottom: 1px dotted var(--link-color); } + .star-btn { + background: transparent !important; + border: none !important; + color: #fbbf24 !important; + display: inline-flex !important; + align-items: center; + justify-content: center; + padding: 4px 8px !important; + cursor: pointer; + transition: all 0.2s ease; + text-decoration: none; + height: 28px; + } + .star-btn:hover { + color: #f59e0b !important; + transform: scale(1.15); + filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5)); + } + .star-btn svg { + width: 18px !important; + height: 18px !important; + fill: currentColor !important; + } .content-area { padding: 0; @@ -846,6 +869,11 @@ CONTENT_TEMPLATE_MINDMAP = """ + + + + +
@@ -1439,8 +1467,8 @@ class Action: description="Whether to print debug logs in the browser console.", ) ENABLE_DIRECT_EMBED_MODE: bool = Field( - default=False, - description="Enable Direct Embed Mode (v0.8.0+ layout) instead of Legacy Mode. Defaults to False (Legacy Mode).", + default=True, + description="Enable Direct Embed Mode (v0.8.0+ layout) instead of Legacy Mode. Defaults to True (Direct Embed Mode).", ) def __init__(self): @@ -2369,6 +2397,11 @@ class Action: + + + + +