mirror of
https://github.com/yusufipk/YTChatHub.git
synced 2026-09-11 19:06:14 +00:00
style: update overlay component styles for improved layout and visual consistency
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user