From a77aecba75429ab2d6584ddecbdc440d8f765333 Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Thu, 9 Apr 2026 17:33:59 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=8B=E6=9C=BA=E7=89=88=E6=96=B0?= =?UTF-8?q?=E5=A2=9E/=E5=AF=BC=E5=87=BA=E6=8C=89=E9=92=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BAemoji=EF=BC=8C=E8=B7=9F=E8=A7=86=E5=9B=BE=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=90=8C=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 桌面: 显示文字按钮'+ 新增''📥 导出PDF' 手机(@media max-width:480px): 隐藏文字按钮,显示 ➕ 📄 emoji按钮 搜索框min-width缩小到140px给按钮留空间 Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/views/OilReference.vue | 34 ++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/OilReference.vue b/frontend/src/views/OilReference.vue index 7a98caa..d54d8a4 100644 --- a/frontend/src/views/OilReference.vue +++ b/frontend/src/views/OilReference.vue @@ -90,15 +90,19 @@
- @@ -1245,6 +1249,28 @@ async function saveCardImage(name) { text-decoration: line-through; white-space: nowrap; } +/* Desktop: show text buttons, hide icon buttons */ +.toolbar-btn-text { + padding: 7px 14px; + border-radius: 8px; + font-size: 12px; + cursor: pointer; + font-family: inherit; + border: 1.5px solid var(--sage); + background: white; + color: var(--sage-dark); + white-space: nowrap; +} +.toolbar-btn-text:hover { background: var(--sage-mist); } +.toolbar-btn-icon { + display: none; + background: none; + border: none; + font-size: 18px; + cursor: pointer; + padding: 4px; +} + @media (max-width: 480px) { .oil-name-line { font-size: 13px; } .oil-en-line { font-size: 9px; } @@ -1252,6 +1278,8 @@ async function saveCardImage(name) { .oil-retail-line { font-size: 10px; } .oils-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; } .oil-chip { padding: 10px 12px; } + .toolbar-btn-text { display: none; } + .toolbar-btn-icon { display: inline-block; } } .oil-chip-actions {