From 1e23300aee421e05654dded0253e5849725925f0 Mon Sep 17 00:00:00 2001 From: Pratham Yadav Date: Wed, 16 Sep 2026 14:51:09 +0530 Subject: [PATCH] fix: align anonymous question input and improve theme styling --- frontend/src/components/AnonymousQA.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/AnonymousQA.tsx b/frontend/src/components/AnonymousQA.tsx index 5001a732..fe1cf442 100644 --- a/frontend/src/components/AnonymousQA.tsx +++ b/frontend/src/components/AnonymousQA.tsx @@ -92,8 +92,8 @@ export const AnonymousQA: React.FC = () => { return (
-
-

+
+

Ask a Question (Anonymous)

@@ -103,20 +103,20 @@ export const AnonymousQA: React.FC = () => { value={questionText} onChange={(e) => setQuestionText(e.target.value)} placeholder="Type your question..." - className="w-full pr-24" + className="w-full pr-24 border-border bg-background text-foreground" onFocus={() => { if (suggestions.length > 0) setShowSuggestions(true); }} /> {showSuggestions && suggestions.length > 0 && ( -
+
{suggestions.map((suggestion, index) => ( @@ -127,28 +127,28 @@ export const AnonymousQA: React.FC = () => {
-

+

Recent Questions ({questions.length})

{questions.length === 0 ? ( -

+

No questions yet. Be the first to ask!

) : ( questions.slice(-10).reverse().map((q) => (
-

{q.text}

-

+

{q.text}

+

{new Date(q.timestamp).toLocaleTimeString()}