Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/components/float-window/FloatWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { usePathname } from "next/navigation";
import { motion, AnimatePresence } from "motion/react";
import type { HomepageEvent } from "@/lib/events-fetch";
import { cn } from "@/lib/utils";
import { X, ChevronUp, ExternalLink, Play } from "lucide-react";
import { X, ChevronDown, ChevronUp, ExternalLink, Play } from "lucide-react";
import styles from "./FloatWindow.module.css";

/**
Expand Down Expand Up @@ -63,7 +63,7 @@ export function FloatWindow({ event }: FloatWindowProps) {
exit={{ opacity: 0 }}
onClick={handleToggle}
className={cn(
"group flex items-center gap-2 px-4 py-2",
"group flex h-8 items-center gap-2 px-4",
// Newsprint 风格:锐利边角,纯黑实线边框
"bg-[#111111] text-[#F9F9F7] border border-[#111111]",
"hover:bg-[#F9F9F7] hover:text-[#111111]", // 悬停时反色
Expand All @@ -74,7 +74,7 @@ export function FloatWindow({ event }: FloatWindowProps) {
>
<span className="w-2 h-2 bg-[#CC0000] animate-pulse" />
<span className="font-bold">Latest</span>
<ChevronUp className="w-4 h-4 rotate-180 group-hover:-translate-y-0.5 transition-transform" />
<ChevronUp className="w-3.5 h-3.5 shrink-0 group-hover:-translate-y-0.5 transition-transform" />
</motion.button>
) : (
/* 展开状态 - 报纸卡片 */
Expand All @@ -91,7 +91,7 @@ export function FloatWindow({ event }: FloatWindowProps) {
)}
>
{/* Header Bar */}
<div className="flex items-center justify-between px-3 py-2 border-b border-[#111111] dark:border-[#F9F9F7] bg-[#111111] dark:bg-[#F9F9F7]">
<div className="flex h-8 items-center justify-between px-3 border-b border-[#111111] dark:border-[#F9F9F7] bg-[#111111] dark:bg-[#F9F9F7]">
<span className="font-mono text-[10px] uppercase tracking-widest font-bold text-[#F9F9F7] dark:text-[#111111]">
The Daily Feed
</span>
Expand All @@ -102,15 +102,15 @@ export function FloatWindow({ event }: FloatWindowProps) {
className="text-[#F9F9F7] dark:text-[#111111] hover:text-[#CC0000] transition-colors"
aria-label="Minimize"
>
<ChevronUp className="w-3.5 h-3.5" />
<ChevronDown className="w-3.5 h-3.5 shrink-0" />
</button>
<button
onClick={handleDismiss}
onPointerDown={(e) => e.stopPropagation()}
className="text-[#F9F9F7] dark:text-[#111111] hover:text-[#CC0000] transition-colors"
aria-label="Close"
>
<X className="w-3.5 h-3.5" />
<X className="w-3.5 h-3.5 shrink-0" />
</button>
</div>
</div>
Expand Down
Loading