Spaces:
Sleeping
Sleeping
Update web/src/components/RightPanel.tsx
Browse files
web/src/components/RightPanel.tsx
CHANGED
|
@@ -9,7 +9,6 @@ import { Textarea } from './ui/textarea';
|
|
| 9 |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './ui/select';
|
| 10 |
import { LogIn, LogOut, FileText, MessageSquare, Download, ClipboardList, Sparkles } from 'lucide-react';
|
| 11 |
import type { User } from '../App';
|
| 12 |
-
import { Download, ClipboardList, Sparkles } from 'lucide-react';
|
| 13 |
import { toast } from 'sonner';
|
| 14 |
import {
|
| 15 |
Dialog,
|
|
@@ -158,13 +157,13 @@ export function RightPanel({
|
|
| 158 |
|
| 159 |
{/* ✅ Actions:三按钮并排(同宽) */}
|
| 160 |
{/* Actions */}
|
| 161 |
-
<Card className="p-4
|
| 162 |
-
<h3>Actions</h3>
|
| 163 |
|
| 164 |
<div className="grid grid-cols-3 gap-2">
|
| 165 |
<Button
|
| 166 |
variant="outline"
|
| 167 |
-
className="w-full
|
| 168 |
onClick={onExport}
|
| 169 |
disabled={!isLoggedIn}
|
| 170 |
title="Export"
|
|
@@ -174,7 +173,7 @@ export function RightPanel({
|
|
| 174 |
|
| 175 |
<Button
|
| 176 |
variant="outline"
|
| 177 |
-
className="w-full
|
| 178 |
onClick={onQuiz}
|
| 179 |
disabled={!isLoggedIn}
|
| 180 |
title="Quiz"
|
|
@@ -184,7 +183,7 @@ export function RightPanel({
|
|
| 184 |
|
| 185 |
<Button
|
| 186 |
variant="outline"
|
| 187 |
-
className="w-full
|
| 188 |
onClick={onSummary}
|
| 189 |
disabled={!isLoggedIn}
|
| 190 |
title="Summary"
|
|
|
|
| 9 |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './ui/select';
|
| 10 |
import { LogIn, LogOut, FileText, MessageSquare, Download, ClipboardList, Sparkles } from 'lucide-react';
|
| 11 |
import type { User } from '../App';
|
|
|
|
| 12 |
import { toast } from 'sonner';
|
| 13 |
import {
|
| 14 |
Dialog,
|
|
|
|
| 157 |
|
| 158 |
{/* ✅ Actions:三按钮并排(同宽) */}
|
| 159 |
{/* Actions */}
|
| 160 |
+
<Card className="p-4">
|
| 161 |
+
<h3 className="mb-3">Actions</h3>
|
| 162 |
|
| 163 |
<div className="grid grid-cols-3 gap-2">
|
| 164 |
<Button
|
| 165 |
variant="outline"
|
| 166 |
+
className="h-10 w-full p-0 flex items-center justify-center"
|
| 167 |
onClick={onExport}
|
| 168 |
disabled={!isLoggedIn}
|
| 169 |
title="Export"
|
|
|
|
| 173 |
|
| 174 |
<Button
|
| 175 |
variant="outline"
|
| 176 |
+
className="h-10 w-full p-0 flex items-center justify-center"
|
| 177 |
onClick={onQuiz}
|
| 178 |
disabled={!isLoggedIn}
|
| 179 |
title="Quiz"
|
|
|
|
| 183 |
|
| 184 |
<Button
|
| 185 |
variant="outline"
|
| 186 |
+
className="h-10 w-full p-0 flex items-center justify-center"
|
| 187 |
onClick={onSummary}
|
| 188 |
disabled={!isLoggedIn}
|
| 189 |
title="Summary"
|