修复主题一些细节优化问题

This commit is contained in:
zqlit committed 2026-05-24 12:17:43 +08:00
1 parent 6351760676
commit 0b869f099f
24 files changed
+645 -67

No files matched your search

+8 -8
View File
@@ -125,7 +125,7 @@ export default function HomePage() {
{/* Dashboard stats */}
{stats && (
<div className="grid grid-cols-3 gap-4 mb-8">
<div className="bg-white border border-line rounded-lg p-4 flex items-center gap-3">
<div className="bg-card border border-line rounded-lg p-4 flex items-center gap-3">
<div className="w-9 h-9 bg-accent/8 rounded-lg flex items-center justify-center">
<PostIcon size={17} className="text-accent" />
</div>
@@ -134,7 +134,7 @@ export default function HomePage() {
<div className="text-lg font-bold text-text">{stats.posts}</div>
</div>
</div>
<div className="bg-white border border-line rounded-lg p-4 flex items-center gap-3">
<div className="bg-card border border-line rounded-lg p-4 flex items-center gap-3">
<div className="w-9 h-9 bg-success/10 rounded-lg flex items-center justify-center">
<Rss size={17} className="text-success" />
</div>
@@ -143,7 +143,7 @@ export default function HomePage() {
<div className="text-lg font-bold text-text">{stats.feeds}</div>
</div>
</div>
<div className="bg-white border border-line rounded-lg p-4 flex items-center gap-3">
<div className="bg-card border border-line rounded-lg p-4 flex items-center gap-3">
<div className="w-9 h-9 bg-[#c09a46]/10 rounded-lg flex items-center justify-center">
<Link2 size={17} className="text-[#c09a46]" />
</div>
@@ -191,7 +191,7 @@ export default function HomePage() {
<select
value={batchAction || ""}
onChange={(e) => { setBatchAction(e.target.value as typeof batchAction || null); setBatchValue(""); }}
className="bg-white border border-line rounded-md px-2 py-1.5 text-[12px] focus:outline-none focus:border-accent/30"
className="bg-card border border-line rounded-md px-2 py-1.5 text-[12px] focus:outline-none focus:border-accent/30"
>
<option value="">选择操作...</option>
<option value="categories">修改分类</option>
@@ -200,14 +200,14 @@ export default function HomePage() {
</select>
{batchAction === "draft" ? (
<select value={batchValue} onChange={(e) => setBatchValue(e.target.value)}
className="bg-white border border-line rounded-md px-2 py-1.5 text-[12px] focus:outline-none">
className="bg-card border border-line rounded-md px-2 py-1.5 text-[12px] focus:outline-none">
<option value="">选择状态...</option>
<option value="true">设为草稿</option>
<option value="false">设为发布</option>
</select>
) : batchAction ? (
<input type="text" value={batchValue} onChange={(e) => setBatchValue(e.target.value)}
className="flex-1 bg-white border border-line rounded-md px-2 py-1.5 text-[12px] focus:outline-none focus:border-accent/30"
className="flex-1 bg-card border border-line rounded-md px-2 py-1.5 text-[12px] focus:outline-none focus:border-accent/30"
placeholder={batchAction === "tags" ? "用顿号分隔" : "用顿号分隔"} />
) : null}
{batchAction && batchValue && (
@@ -224,7 +224,7 @@ export default function HomePage() {
<div className="relative mb-6">
<Search size={15} className="absolute left-3 top-1/2 -translate-y-1/2 text-muted/50" />
<input type="text" value={search} onChange={(e) => { setSearch(e.target.value); setPage(1); }}
placeholder="搜索标题、分类..." className="w-full pl-9 pr-4 py-2.5 bg-white border border-line rounded-md text-[13px] text-text placeholder:text-muted/40 focus:outline-none focus:border-accent/30 transition-colors" />
placeholder="搜索标题、分类..." className="w-full pl-9 pr-4 py-2.5 bg-card border border-line rounded-md text-[13px] text-text placeholder:text-muted/40 focus:outline-none focus:border-accent/30 transition-colors" />
</div>
{/* Article list */}
@@ -247,7 +247,7 @@ export default function HomePage() {
)}
{posts.map((post, i) => (
<div key={`${post.slug}-${i}`}
className="group flex items-center gap-4 px-5 py-3.5 bg-white border border-line rounded-md hover:border-accent/15 transition-all">
className="group flex items-center gap-4 px-5 py-3.5 bg-card border border-line rounded-md hover:border-accent/15 transition-all">
{/* Select checkbox */}
{selectMode && (
<button type="button" onClick={() => toggleSelect(post.slug)} className="shrink-0">