diff --git a/frontend/src/components/AnonymousQA.tsx b/frontend/src/components/AnonymousQA.tsx index 5001a73..fe1cf44 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()}