chore: remove debug logging and refine UI polish for overlay components

This commit is contained in:
Yusuf İpek
2025-10-08 23:15:23 +03:00
parent f85b2a942f
commit 5a33b01a11
5 changed files with 6 additions and 38 deletions
+3 -2
View File
@@ -239,8 +239,9 @@ function useOverlaySelection() {
// Heartbeat - connection is alive
});
globalSSEConnection.onerror = () => {
console.error('[Dashboard] SSE error');
globalSSEConnection.onerror = (error) => {
console.error('[Dashboard] SSE connection error - will auto-reconnect', error);
// EventSource automatically reconnects, no action needed
};
}
+2 -1
View File
@@ -918,7 +918,7 @@ main {
.overlay__card {
background: #1f1f1f;
border: 1px solid #3a3a3a;
border-radius: 8px;
border-radius: 16px;
padding: 1rem 1.5rem;
display: flex;
flex-direction: column;
@@ -927,6 +927,7 @@ main {
max-width: 95vw;
animation: fadeIn 0.4s ease-out;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.overlay__card--fadeOut {
+1 -5
View File
@@ -128,11 +128,7 @@ export default function OverlayPage() {
</>
)}
</div>
) : (
<div className="overlay__placeholder">
<span>{connected ? 'Awaiting selection…' : 'Reconnecting…'}</span>
</div>
)}
) : null}
</main>
);
}