93e9042a8b
Tables no longer scroll sideways: columns size to content and shrink to fit, wrapping cell text; an unbreakable token breaks inside its cell. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.2 KiB
Dart
41 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:pipelines_app/features/chat/ui/transcript/chat_markdown_view.dart';
|
|
|
|
const _sample = '''
|
|
A wide table wraps its cells to the transcript width instead of scrolling:
|
|
|
|
| Stage | What it does | Result | Owner |
|
|
| --- | --- | --- | --- |
|
|
| implement | Writes the focused change in its own worktree and runs the area tests before handing off to review | passed | Luna |
|
|
| review | Reads the actual diff, checks regressions, and asks for fixes when the change misses the requested behaviour | changes requested | reviewer |
|
|
| land | Merges into main after checks, then verifies ancestry | pending | manager |
|
|
|
|
A long token breaks inside its cell:
|
|
|
|
| Path | Note |
|
|
| --- | --- |
|
|
| app/lib/features/chat/ui/transcript/chat_markdown_view_with_a_very_long_name.dart | short |
|
|
|
|
A narrow table keeps its content width:
|
|
|
|
| a | b |
|
|
| --- | --- |
|
|
| 1 | 2 |
|
|
''';
|
|
|
|
/// Markdown tables at the window width, for a wrap capture.
|
|
void main() {
|
|
runApp(
|
|
MaterialApp(
|
|
theme: ThemeData(brightness: Brightness.dark),
|
|
home: Scaffold(
|
|
body: ListView(
|
|
padding: const EdgeInsets.all(16),
|
|
children: const [ChatMarkdownView(text: _sample)],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|