From 9ceaf8dcd301f52764c31578c072207e579a3bb1 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 22 Jun 2026 19:01:25 -0600 Subject: [PATCH] style: add dropdown styling for the merged generate menu button Co-Authored-By: Claude Sonnet 4.6 --- src/style.css | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/style.css b/src/style.css index 227da6b..617fad4 100644 --- a/src/style.css +++ b/src/style.css @@ -270,6 +270,42 @@ table { cursor: not-allowed; } +.generate-menu { + position: relative; + display: inline-flex; +} + +.generate-menu-list { + position: absolute; + top: 100%; + left: 0; + margin: 4px 0 0; + padding: 4px; + min-width: 120px; + list-style: none; + background: #fff; + border: 1px solid var(--line); + border-radius: var(--radius-md); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); + z-index: 10; +} + +.generate-menu-list button { + display: block; + width: 100%; + border: none; + background: transparent; + border-radius: var(--radius-md); + padding: 8px 12px; + text-align: left; + color: var(--green-700); + cursor: pointer; +} + +.generate-menu-list button:hover { + background: var(--green-100); +} + .workspace-toolbar-count, .workspace-toolbar-warning, .workspace-toolbar-status { @@ -739,6 +775,10 @@ table { flex: 0 0 auto; } + .workspace-toolbar .generate-menu { + flex: 0 0 auto; + } + .workspace-toolbar-count { flex: 1 1 100%; }