From 42d806388628b4f5362e758ba5fe9afd479afc24 Mon Sep 17 00:00:00 2001 From: kennethcheng Date: Mon, 27 Apr 2026 16:02:23 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=AE=8C=E7=BE=8E=E8=BF=98=E5=8E=9F?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=8D=A0=E4=BD=8D=E7=AC=A6=E8=A7=86=E8=A7=89=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEV_LOG.md | 2 ++ src/components/Search.astro | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/DEV_LOG.md b/DEV_LOG.md index bec2074..4c87d25 100644 --- a/DEV_LOG.md +++ b/DEV_LOG.md @@ -45,6 +45,8 @@ - **Task 27**: 彻底重构搜索框 UI,移除默认硬编码样式,引入半透明磨砂玻璃效果,优化图标与聚焦交互,全面适配 2026 审美标准。 +- **Task 28**: 重构开发模式下的搜索占位符 UI,采用精致圆角、居中对齐与柔和暗黑边框,完美还原视觉设计。 + --- **🔄 当前状态**: 系统架构稳定,UI 交互流畅。所有功能模块已固化至 Git 版本控制。 **📝 下一步计划**: 等待分配新需求(如:SEO 优化等)。 \ No newline at end of file diff --git a/src/components/Search.astro b/src/components/Search.astro index d139119..5dbd5d1 100644 --- a/src/components/Search.astro +++ b/src/components/Search.astro @@ -32,7 +32,12 @@ }; document.head.appendChild(script); } else { - searchDiv.innerHTML = '
🔍 搜索功能将在 Build 后激活
'; + searchDiv.innerHTML = ` +
+ 🔍 + 搜索功能将在 Build 后激活 +
+ `; } } catch (e) { console.warn('Pagefind 尚未初始化');