From 87bd3f8d1af8e91c7918d53dd182dbd4f96113c4 Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Tue, 15 Apr 2025 20:18:18 +0200 Subject: [PATCH] use SSE for online status updates --- src/components/ActivityWidget.astro | 52 +++++++++++++++++++++++++++-- src/pages/index.astro | 31 ----------------- 2 files changed, 50 insertions(+), 33 deletions(-) diff --git a/src/components/ActivityWidget.astro b/src/components/ActivityWidget.astro index 5655d0e..f90ed4a 100644 --- a/src/components/ActivityWidget.astro +++ b/src/components/ActivityWidget.astro @@ -38,6 +38,10 @@ import tinyYHT from '../assets/img/tiny_yht.png'; } + #online-game { + white-space: nowrap; + } + .world { position: relative; width: 100%; @@ -100,7 +104,6 @@ import tinyYHT from '../assets/img/tiny_yht.png'; left: 50%; transform: translateX(-50%) translateY(-0.2rem); width: max-content; - max-width: 250px; right: 0; background-color: white; color: black; @@ -209,4 +212,49 @@ import tinyYHT from '../assets/img/tiny_yht.png'; margin-bottom: 0.1rem; } } - \ No newline at end of file + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index ea3d21d..11f6595 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -77,34 +77,3 @@ const permalink = Astro?.site?.href ?? '/'; } - - -