diff --git a/public/healthz.json b/public/healthz.json index 2f36db0..0c10620 100644 --- a/public/healthz.json +++ b/public/healthz.json @@ -2,7 +2,7 @@ "status": "ok", "service": "aitherboard", "version": "0.2.0", - "buildTime": "2026-02-06T23:46:07.275Z", + "buildTime": "2026-02-07T00:27:17.672Z", "gitCommit": "unknown", - "timestamp": 1770421567275 + "timestamp": 1770424037672 } \ No newline at end of file diff --git a/src/lib/components/EventMenu.svelte b/src/lib/components/EventMenu.svelte index ff9d63e..98254bd 100644 --- a/src/lib/components/EventMenu.svelte +++ b/src/lib/components/EventMenu.svelte @@ -97,10 +97,11 @@ const buttonRect = menuButtonElement.getBoundingClientRect(); const viewportWidth = window.innerWidth; const viewportHeight = window.innerHeight; - const padding = 8; // Padding from viewport edges + const isMobile = viewportWidth < 640; + const padding = isMobile ? 4 : 8; // Smaller padding on mobile // Get dropdown dimensions (estimate or use actual if available) - let dropdownWidth = 200; // min-width from CSS + let dropdownWidth = isMobile ? 180 : 200; // min-width from CSS let dropdownHeight = 300; // Estimate, will be updated // Position below button by default, aligned to right edge @@ -155,6 +156,11 @@ adjustedRight = padding; } + // On mobile, ensure menu doesn't go off left edge + if (isMobile && adjustedLeft < padding) { + adjustedRight = Math.max(padding, viewportWidth - dropdownWidth - padding); + } + menuPosition = { top: adjustedTop, right: adjustedRight }; }); @@ -422,7 +428,7 @@ {#if isLoggedIn && onReply}
- +
{profile.name || 'Anonymous'}
+{profile.name || 'Anonymous'}
{#if profile.about}{profile.about}
{/if} @@ -795,10 +795,10 @@