|
4 | 4 | import { useState, useEffect, useRef } from 'react'; |
5 | 5 | import { useNavigate } from 'react-router-dom'; |
6 | 6 | import { motion } from 'framer-motion'; |
7 | | -import { Timer, Zap, Bell, Save, RotateCcw, GraduationCap, Sparkles, CheckCircle2, Music, Volume2, Brain, Plus, Pencil, Trash2, Layers, ChevronUp, ChevronDown } from 'lucide-react'; |
| 7 | +import { Timer, Zap, Bell, Save, RotateCcw, GraduationCap, Sparkles, CheckCircle2, Music, Volume2, Brain, Plus, Pencil, Trash2, Layers, ChevronUp, ChevronDown, ArrowLeft } from 'lucide-react'; |
8 | 8 | import { AIThinkingIndicator } from '@/components/ui/AIThinkingIndicator'; |
9 | 9 | import { Button, Card, Input, useToast } from '@/components/ui'; |
10 | 10 | import { cn } from '@/lib/utils'; |
@@ -196,10 +196,25 @@ export default function PomodoroSettingsPage() { |
196 | 196 | animate="visible" |
197 | 197 | variants={{ hidden: {}, visible: { transition: { staggerChildren: 0.07, delayChildren: 0.06 } } }} |
198 | 198 | > |
199 | | - <motion.h1 |
200 | | - className="text-h1 font-semibold text-text-primary mb-kb-lg" |
| 199 | + <motion.div |
| 200 | + className="flex items-center gap-2 mb-kb-lg" |
201 | 201 | variants={{ hidden: { opacity: 0, y: -12, scale: 0.97 }, visible: { opacity: 1, y: 0, transition: { duration: 0.35 } } }} |
202 | | - >深潜设置</motion.h1> |
| 202 | + > |
| 203 | + {/* 返回深潜模块(内测反馈:设置页此前无出口,只能 Esc 退到 3D 场景) */} |
| 204 | + <Tip text="返回深潜"> |
| 205 | + <button |
| 206 | + onClick={() => navigate('/pomodoro')} |
| 207 | + aria-label="返回深潜" |
| 208 | + className="p-1.5 rounded-kb-full text-text-tertiary hover:text-text-primary hover:bg-bg-tertiary transition-all duration-kb-fast" |
| 209 | + > |
| 210 | + <ArrowLeft className="w-icon-md h-icon-md" strokeWidth={1.5} /> |
| 211 | + </button> |
| 212 | + </Tip> |
| 213 | + <motion.h1 |
| 214 | + className="text-h1 font-semibold text-text-primary" |
| 215 | + variants={{ hidden: { opacity: 0, y: -12, scale: 0.97 }, visible: { opacity: 1, y: 0, transition: { duration: 0.35 } } }} |
| 216 | + >深潜设置</motion.h1> |
| 217 | + </motion.div> |
203 | 218 |
|
204 | 219 | {/* Duration settings */} |
205 | 220 | <motion.div variants={{ hidden: { opacity: 0, y: 16, scale: 0.97 }, visible: { opacity: 1, y: 0, transition: { duration: 0.35 } } }}> |
|
0 commit comments