diff --git a/frontend/src/views/RecipeManager.vue b/frontend/src/views/RecipeManager.vue index 4959d95..069e4eb 100644 --- a/frontend/src/views/RecipeManager.vue +++ b/frontend/src/views/RecipeManager.vue @@ -28,31 +28,23 @@ - -
- - - - 共{{ totalSelected }}个 - +
+ + + +
+ + - - + + +
@@ -1812,15 +1804,32 @@ watch(() => recipeStore.recipes, () => { .drops-sm:focus { border-color: #7ec6a4; } .select-sm { padding: 3px 6px; border: 1.5px solid #d4cfc7; border-radius: 6px; font-size: 12px; font-family: inherit; background: #fff; width: auto; } .btn-select-active { background: #e8f5e9; color: #2e7d5a; border: 1.5px solid #7ec6a4; border-radius: 10px; padding: 7px 14px; font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 600; } -.toolbar-row { +.search-bar { margin-bottom: 8px; } +.search-bar .search-box { + display: flex; align-items: center; background: #f8f7f5; border: 1.5px solid #e5e4e7; + border-radius: 10px; padding: 2px 10px; +} +.search-bar .search-input { + flex: 1; border: none; background: transparent; padding: 8px 4px; font-size: 14px; + outline: none; font-family: inherit; +} + +.action-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } -.search-compact { - flex: 0 1 160px; min-width: 100px; padding: 2px 8px; - background: #f8f7f5; border: 1.5px solid #e5e4e7; border-radius: 10px; - display: flex; align-items: center; +.action-chip { + padding: 5px 14px; border: 1.5px solid #e5e4e7; border-radius: 20px; background: #fff; + font-size: 13px; cursor: pointer; font-family: inherit; color: #6b6375; white-space: nowrap; + transition: all 0.15s; +} +.action-chip:hover { border-color: #7ec6a4; color: #4a9d7e; } +.action-chip.active { background: #e8f5e9; border-color: #7ec6a4; color: #2e7d5a; font-weight: 600; } +.action-chip.cancel { color: #999; } +.chip-count { + display: inline-block; background: #4a9d7e; color: #fff; font-size: 11px; + min-width: 16px; height: 16px; line-height: 16px; text-align: center; + border-radius: 8px; margin-left: 4px; padding: 0 4px; } -.search-compact .search-input { border: none; background: transparent; padding: 6px 4px; font-size: 13px; outline: none; width: 100%; font-family: inherit; } .detail-close-btn { border: none; background: #f0eeeb; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; color: #6b6375;