style: update overlay component styles for improved layout and visual consistency

This commit is contained in:
Yusuf İpek
2025-10-11 23:15:52 +03:00
parent 6346cdc525
commit 1b1df95573
2 changed files with 61 additions and 51 deletions
-4
View File
@@ -2,8 +2,6 @@
import { useEffect, useState, useRef } from 'react';
import type { ChatMessage } from '@shared/chat';
import { useTimezone } from '../../lib/TimezoneContext';
import { formatTimestamp } from '../../lib/timezone';
import { proxyImageUrl } from '../../lib/imageProxy';
const BACKEND_URL = process.env.NEXT_PUBLIC_BACKEND_URL ?? 'http://localhost:4100';
@@ -17,7 +15,6 @@ export default function OverlayPage() {
const [connected, setConnected] = useState(false);
const [fadingOut, setFadingOut] = useState(false);
const connectionRef = useRef<EventSource | null>(null);
const { timezone } = useTimezone();
useEffect(() => {
// Prevent multiple connections
@@ -147,7 +144,6 @@ export default function OverlayPage() {
</span>
)
))}
<time className="overlay__timestamp">{formatTimestamp(message.publishedAt, timezone)}</time>
</div>
</div>
</div>