Skip to content

Commit 43ff275

Browse files
Refactor: Simplify onboarding modal UI by adjusting spacing, font sizes, and label text for improved clarity and consistency.
1 parent db032ab commit 43ff275

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

frontend/components/onboarding-modal.tsx

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export function OnboardingModal({ isOpen, onClose }: OnboardingModalProps) {
192192
<div className="space-y-4">
193193
<div className="space-y-3">
194194
<Label className="text-slate-700 font-medium text-sm">
195-
Example Response with Interactive Elements:
195+
Example Response:
196196
</Label>
197197

198198
<div className="bg-white border-2 border-slate-300 rounded-lg p-4 font-mono text-sm">
@@ -227,59 +227,58 @@ export function OnboardingModal({ isOpen, onClose }: OnboardingModalProps) {
227227
subtitle: "Understanding AI limitations",
228228
icon: <AlertTriangle className="h-8 w-8 text-blue-600" />,
229229
content: (
230-
<div className="space-y-6">
230+
<div className="space-y-4">
231231
<div className="text-center">
232-
<div className="bg-gradient-to-r from-blue-50 to-indigo-50 rounded-lg p-6 mb-4">
233-
<AlertTriangle className="h-12 w-12 text-blue-600 mx-auto mb-4" />
234-
<h3 className="text-lg font-semibold text-slate-900 mb-2">
232+
<div className="bg-gradient-to-r from-blue-50 to-indigo-50 rounded-lg p-4 mb-3">
233+
<AlertTriangle className="h-10 w-10 text-blue-600 mx-auto mb-2" />
234+
<h3 className="text-base font-semibold text-slate-900 mb-1">
235235
AI Response Limitations
236236
</h3>
237-
<p className="text-slate-600">
238-
Understanding these limitations ensures you use the AI Assistant
239-
effectively and safely.
237+
<p className="text-slate-600 text-sm">
238+
Understanding these limitations ensures you use the AI effectively.
240239
</p>
241240
</div>
242241
</div>
243-
<div className="space-y-4">
244-
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
242+
<div className="space-y-3">
243+
<div className="grid grid-cols-1 md:grid-cols-3 gap-3">
245244
<Card className="border-blue-200 bg-blue-50">
246-
<CardContent className="p-4 text-center">
247-
<div className="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-3">
248-
<span className="text-blue-600 text-xl">🤖</span>
245+
<CardContent className="p-3 text-center">
246+
<div className="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-2">
247+
<span className="text-blue-600 text-lg">🤖</span>
249248
</div>
250-
<h4 className="font-semibold text-blue-900 mb-2">
249+
<h4 className="font-semibold text-blue-900 mb-1 text-sm">
251250
AI Hallucinations
252251
</h4>
253-
<p className="text-sm text-blue-800">
252+
<p className="text-xs text-blue-800">
254253
AI may generate plausible-sounding but incorrect information
255254
</p>
256255
</CardContent>
257256
</Card>
258257

259258
<Card className="border-blue-200 bg-blue-50">
260-
<CardContent className="p-4 text-center">
261-
<div className="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-3">
262-
<span className="text-blue-600 text-xl">⚠️</span>
259+
<CardContent className="p-3 text-center">
260+
<div className="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-2">
261+
<span className="text-blue-600 text-lg">⚠️</span>
263262
</div>
264-
<h4 className="font-semibold text-blue-900 mb-2">
263+
<h4 className="font-semibold text-blue-900 mb-1 text-sm">
265264
Server Errors
266265
</h4>
267-
<p className="text-sm text-blue-800">
266+
<p className="text-xs text-blue-800">
268267
Technical issues may affect response accuracy or
269268
availability
270269
</p>
271270
</CardContent>
272271
</Card>
273272

274273
<Card className="border-blue-200 bg-blue-50">
275-
<CardContent className="p-4 text-center">
276-
<div className="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-3">
277-
<span className="text-blue-600 text-xl">📊</span>
274+
<CardContent className="p-3 text-center">
275+
<div className="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-2">
276+
<span className="text-blue-600 text-lg">📊</span>
278277
</div>
279-
<h4 className="font-semibold text-blue-900 mb-2">
278+
<h4 className="font-semibold text-blue-900 mb-1 text-sm">
280279
Private Models
281280
</h4>
282-
<p className="text-sm text-blue-800">
281+
<p className="text-xs text-blue-800">
283282
Feature under development to access private models securely
284283
</p>
285284
</CardContent>

0 commit comments

Comments
 (0)