Skip to content

fix: desktop session dashboard 3-column layout collapsing to zero height - #70

Merged
egionCode merged 1 commit into
mainfrom
fix/desktop-layout-collapsed
Aug 2, 2026
Merged

egionCode merged 1 commit into
mainfrom
fix/desktop-layout-collapsed

Conversation

@egionCode

Copy link
Copy Markdown
Owner

Resumo

No layout desktop (Story 11.2/11.4), IntrinsicHeight envolvendo um Row cujos filhos eram Expanded + SingleChildScrollView (por sua vez dentro de outro SingleChildScrollView da própria página) dava a cada coluna constraints de altura conflitantes/ilimitadas. Isso colapsava as colunas Jogadores/NPCs/Log para altura zero no Web, deixando só a sidebar e o card de sessão visíveis — sem erro aparente na UI.

Removido o IntrinsicHeight e o SingleChildScrollView por coluna; as colunas agora têm altura natural e rolam junto com o resto da página pelo único SingleChildScrollView externo.

Test plan

  • flutter analyze sem issues
  • flutter test (135/135)
  • dart format --set-exit-if-changed . sem mudanças
  • Reproduzido visualmente no Chrome/Brave (relatado pelo usuário) e corrigido

…ero height

IntrinsicHeight wrapping a Row whose children were Expanded +
SingleChildScrollView (itself nested inside the page's own
SingleChildScrollView) gave every column unbounded/conflicting height
constraints. On the web renderer this collapsed Jogadores/NPCs/Log to
zero height, leaving only the sidebar and session card visible - no
error surfaced in the UI since Flutter contains layout failures to the
affected subtree.

Removed IntrinsicHeight and the per-column SingleChildScrollView; the
columns now size to their natural content height and scroll along with
the rest of the page via the single outer SingleChildScrollView.

Also added a takeException() check to the desktop layout test, since
find.text() alone doesn't detect a RenderObject that built fine but
failed to lay out.
@egionCode egionCode added the bug Something isn't working label Aug 2, 2026
@egionCode
egionCode merged commit 160c317 into main Aug 2, 2026
1 check passed
@egionCode
egionCode deleted the fix/desktop-layout-collapsed branch August 2, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant