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: keep hosted audience controls inside dynamic viewport (#5499)

[._.]/ Adam Eivye407c7e8f8e7
diff --git a/client/src/pages/FableLoomHostedJoin.jsx b/client/src/pages/FableLoomHostedJoin.jsx
index 0a6a20c089..70947e980c 100644
--- a/client/src/pages/FableLoomHostedJoin.jsx
+++ b/client/src/pages/FableLoomHostedJoin.jsx
@@ -175,7 +175,7 @@ export default function FableLoomHostedJoin() {
if (authError) {
return (
- <div className="min-h-screen bg-slate-950 text-white flex flex-col items-center justify-center p-6 text-center">
+ <div className="min-h-dvh-cap bg-slate-950 text-white flex flex-col items-center justify-center p-6 text-center">
<div className="w-16 h-16 rounded-full bg-red-500/10 border border-red-500/20 flex items-center justify-center mb-4">
<AlertCircle className="w-8 h-8 text-red-400" />
</div>
@@ -186,7 +186,7 @@ export default function FableLoomHostedJoin() {
}
return (
- <div className="min-h-screen bg-slate-950 text-white flex flex-col justify-between max-w-md mx-auto relative overflow-hidden shadow-2xl">
+ <div className="min-h-dvh-cap bg-slate-950 text-white flex flex-col justify-between max-w-md mx-auto relative overflow-hidden shadow-2xl">
<audio ref={audioPlayerRef} className="hidden" />
{/* Header */}
@@ -308,7 +308,7 @@ export default function FableLoomHostedJoin() {
type="submit"
aria-label="Send message"
disabled={!textInput.trim() || turnPhase === 'thinking' || turnPhase === 'speaking'}
- className="p-2 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-40 disabled:cursor-not-allowed rounded-lg text-white transition-colors"
+ className="min-w-[44px] min-h-[44px] p-2 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-40 disabled:cursor-not-allowed rounded-lg text-white transition-colors flex items-center justify-center"
>
<Send className="w-4 h-4" />
</button>
diff --git a/client/src/pages/FableLoomHostedJoin.test.jsx b/client/src/pages/FableLoomHostedJoin.test.jsx
index 312516ad17..43ad843338 100644
--- a/client/src/pages/FableLoomHostedJoin.test.jsx
+++ b/client/src/pages/FableLoomHostedJoin.test.jsx
@@ -24,6 +24,10 @@ describe('FableLoomHostedJoin', () => {
render(<FableLoomHostedJoin />);
expect(screen.getByText('Hosted Play Error')).toBeInTheDocument();
expect(screen.getByText(/Invalid or missing join credentials/i)).toBeInTheDocument();
+
+ const shell = screen.getByRole('heading', { name: 'Hosted Play Error' }).parentElement;
+ expect(shell).toHaveClass('min-h-dvh-cap');
+ expect(shell).not.toHaveClass('min-h-screen');
});
it('connects to /fableloom-hosted when hash credentials are provided', async () => {
@@ -40,6 +44,19 @@ describe('FableLoomHostedJoin', () => {
expect(screen.getByText('Audience Microphone UI')).toBeInTheDocument();
});
+ it('keeps the transcript as the only inner scroll region of the dynamic shell', () => {
+ window.location.hash = '#session=sess-123&token=tok-abc';
+ render(<FableLoomHostedJoin />);
+
+ const shell = screen.getByRole('banner').parentElement;
+ expect(shell).toHaveClass('min-h-dvh-cap', 'overflow-hidden');
+ expect(shell).not.toHaveClass('min-h-screen');
+
+ const scrollRegions = shell.querySelectorAll('.overflow-y-auto');
+ expect(scrollRegions).toHaveLength(1);
+ expect(scrollRegions[0]).toHaveClass('flex-1');
+ });
+
it('sends text input fallback when submitted', async () => {
window.location.hash = '#session=sess-123&token=tok-abc';
render(<FableLoomHostedJoin />);
@@ -47,7 +64,15 @@ describe('FableLoomHostedJoin', () => {
const input = screen.getByPlaceholderText('Or type a message…');
fireEvent.change(input, { target: { value: 'Look around the room' } });
- expect(screen.getByRole('button', { name: 'Send message' })).toBeInTheDocument();
+ const sendButton = screen.getByRole('button', { name: 'Send message' });
+ expect(sendButton).toBeInTheDocument();
+ expect(sendButton).toHaveClass(
+ 'min-w-[44px]',
+ 'min-h-[44px]',
+ 'flex',
+ 'items-center',
+ 'justify-center',
+ );
fireEvent.submit(input.closest('form'));
expect(mockSocket.emit).toHaveBeenCalledWith('hosted:turn:text', { text: 'Look around the room' });