Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(mobile): cap toast widths and reflow eye-exam form on small viewports

Adam Eivya17d04226f1b
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 2752c8b4d8..4a4311d9d6 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -6,6 +6,7 @@
## Fixed
+- **Toast notifications and the eye-exam form no longer overflow on mobile.** The agent-feedback toast had a hard `w-[480px]` when expanded that overflowed past the right edge of a 375px viewport, and the global toast container's `max-w-[520px]` could similarly extend past the screen on narrow viewports. Both now cap at `calc(100vw - 2rem)` on mobile and switch to their full width at the `sm:` breakpoint (640px+). The eye-exam editor on MeatSpace → Body was also unusable on mobile — its `grid-cols-7` layout squeezed seven number inputs into ~42px each at 375px wide; it now reflows to two columns on mobile (with the date field full-width), four on tablet, seven on desktop.
- **Image preview lightbox readable in glass-style day themes.** The MediaLightbox panel (used by Image Gen and Video Gen) inherited `--port-card-alpha: 0.6` from glass themes like Lumen Glass Day, rendering as muddy translucent grey over the modal's `bg-black/90` overlay. Combined with the existing tinted action buttons (`bg-port-accent/20 text-port-accent`), the Remix and Send to Video buttons became nearly invisible. The panel now pins `--port-card-alpha` and `--port-border-alpha` to 1 within the lightbox scope so it renders solid in any theme, and the action buttons switched from translucent-tint to solid-fill (`bg-port-accent text-white`, `bg-port-success text-white`) for high contrast across all day and night themes.
## Changed
diff --git a/client/src/components/meatspace/tabs/BodyTab.jsx b/client/src/components/meatspace/tabs/BodyTab.jsx
index 58454afc88..31305e5c50 100644
--- a/client/src/components/meatspace/tabs/BodyTab.jsx
+++ b/client/src/components/meatspace/tabs/BodyTab.jsx
@@ -121,8 +121,8 @@ export default function BodyTab() {
<h4 className="text-sm font-medium text-gray-300 mb-3">
{editingEyeIdx != null ? 'Edit Eye Exam' : 'New Eye Exam'}
</h4>
- <div className="grid grid-cols-7 gap-2 mb-3">
- <div>
+ <div className="grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-7 gap-2 mb-3">
+ <div className="col-span-2 sm:col-span-4 lg:col-span-1">
<label htmlFor="eye-date" className="text-xs text-gray-500">Date</label>
<input id="eye-date" type="date" value={eyeForm.date}
onChange={e => setEyeForm(f => ({ ...f, date: e.target.value }))}
diff --git a/client/src/components/ui/Toast.jsx b/client/src/components/ui/Toast.jsx
index 153788dd7b..261cd73c3b 100644
--- a/client/src/components/ui/Toast.jsx
+++ b/client/src/components/ui/Toast.jsx
@@ -103,7 +103,7 @@ export function Toaster({ position = 'bottom-right', toastOptions = {} }) {
const iconStr = t.icon ?? (t.type !== 'default' ? TYPE_ICON[t.type] : null);
const iconClass = t.type !== 'default' ? TYPE_CLASS[t.type] : '';
return (
- <div key={t.id} style={style} className="pointer-events-auto flex items-start gap-2 shadow-lg text-sm max-w-[520px] bg-port-card border border-port-border">
+ <div key={t.id} style={style} className="pointer-events-auto flex items-start gap-2 shadow-lg text-sm max-w-[calc(100vw-2rem)] sm:max-w-[520px] bg-port-card border border-port-border">
{iconStr && <span className={`shrink-0 ${iconClass}`}>{iconStr}</span>}
<div className="flex-1 min-w-0">
{typeof t.content === 'function' ? t.content({ id: t.id }) : <span>{t.content}</span>}
diff --git a/client/src/hooks/useAgentFeedbackToast.jsx b/client/src/hooks/useAgentFeedbackToast.jsx
index d2f062b552..aa78866081 100644
--- a/client/src/hooks/useAgentFeedbackToast.jsx
+++ b/client/src/hooks/useAgentFeedbackToast.jsx
@@ -47,7 +47,7 @@ function AgentFeedbackToast({ t, agentData, onFeedback }) {
}, [expanded, output.length, loadingOutput, agentId]);
return (
- <div className={`flex flex-col gap-2 transition-all ${expanded ? 'w-[480px]' : 'max-w-xs'}`}>
+ <div className={`flex flex-col gap-2 transition-all ${expanded ? 'w-full sm:w-[480px] max-w-[calc(100vw-2rem)]' : 'max-w-xs'}`}>
{/* Header */}
<div className="flex items-center gap-2">
<span className={success ? 'text-green-500' : 'text-red-500'}>