Skip to content

一分钟搭建影视站,支持Docker等部署方式

fix(ui): 修正不存在的 bg-surface-hover 为 bg-hover,补 192px PWA 图标

bestZwei6a0793a8cb67
diff --git a/public/icons/icon-192.png b/public/icons/icon-192.png
new file mode 100644
index 0000000..3ddd81c
Binary files /dev/null and b/public/icons/icon-192.png differ
diff --git a/src/app/manifest.ts b/src/app/manifest.ts
index 114a3d9..b175529 100644
--- a/src/app/manifest.ts
+++ b/src/app/manifest.ts
@@ -10,6 +10,12 @@ export default function manifest(): MetadataRoute.Manifest {
background_color: '#111111',
theme_color: '#111111',
icons: [
+ {
+ src: '/icons/icon-192.png',
+ sizes: '192x192',
+ type: 'image/png',
+ purpose: 'any',
+ },
{
src: '/icons/icon-512.png',
sizes: '512x512',
diff --git a/src/app/watch/page.tsx b/src/app/watch/page.tsx
index 87eac19..b51f741 100644
--- a/src/app/watch/page.tsx
+++ b/src/app/watch/page.tsx
@@ -330,7 +330,7 @@ function BackButton() {
const router = useRouter();
return (
<button
- className="p-2 -ml-2 rounded-md text-muted hover:text-content hover:bg-surface-hover transition-colors"
+ className="p-2 -ml-2 rounded-md text-muted hover:text-content hover:bg-hover transition-colors"
onClick={() => {
if (window.history.length > 1) router.back();
else router.push('/');
diff --git a/src/components/detail-modal.tsx b/src/components/detail-modal.tsx
index 03eb178..e51d232 100644
--- a/src/components/detail-modal.tsx
+++ b/src/components/detail-modal.tsx
@@ -131,7 +131,7 @@ export function DetailModal({ item, onClose }: { item: SearchResultItem | null;
<span className="text-sm text-faint">{item.sourceName}</span>
</div>
<button
- className="p-1.5 rounded-md text-muted hover:text-content hover:bg-surface-hover shrink-0"
+ className="p-1.5 rounded-md text-muted hover:text-content hover:bg-hover shrink-0"
onClick={onClose}
aria-label="关闭"
>
diff --git a/src/components/header.tsx b/src/components/header.tsx
index bae8704..e97791f 100644
--- a/src/components/header.tsx
+++ b/src/components/header.tsx
@@ -77,7 +77,7 @@ function HeaderLink({ href, active, children }: { href: string; active: boolean;
href={href}
className={cn(
'px-2.5 py-1.5 rounded-md text-sm transition-colors',
- active ? 'text-content bg-surface-hover' : 'text-muted hover:text-content'
+ active ? 'text-content bg-hover' : 'text-muted hover:text-content'
)}
>
{children}
@@ -88,7 +88,7 @@ function HeaderLink({ href, active, children }: { href: string; active: boolean;
function IconButton({ label, onClick, children }: { label: string; onClick: () => void; children: React.ReactNode }) {
return (
<button
- className="p-2 rounded-md text-muted hover:text-content hover:bg-surface-hover transition-colors"
+ className="p-2 rounded-md text-muted hover:text-content hover:bg-hover transition-colors"
title={label}
aria-label={label}
onClick={onClick}
@@ -138,7 +138,7 @@ export function Drawer({
<div className="sticky top-0 bg-surface-raised px-4 py-3.5 border-b border-line flex items-center justify-between z-10">
<h2 className="font-semibold text-content">{title}</h2>
<button
- className="p-1.5 rounded-md text-muted hover:text-content hover:bg-surface-hover"
+ className="p-1.5 rounded-md text-muted hover:text-content hover:bg-hover"
onClick={onClose}
aria-label="关闭"
>
diff --git a/src/components/history-panel.tsx b/src/components/history-panel.tsx
index 81c7d00..bbded92 100644
--- a/src/components/history-panel.tsx
+++ b/src/components/history-panel.tsx
@@ -74,7 +74,7 @@ function HistoryItem({ item }: { item: HistoryEntry }) {
// 点击即同步一次时间戳,置顶最近观看
upsertHistory({ ...item, timestamp: Date.now() }).catch(() => {});
}}
- className="block bg-card hover:bg-surface-hover rounded-lg p-3 pr-10 transition-colors"
+ className="block bg-card hover:bg-hover rounded-lg p-3 pr-10 transition-colors"
>
<div className="flex items-center gap-3">
{pic && !imgFailed ? (