diff --git a/lib/src/flow_editor_page.dart b/lib/src/flow_editor_page.dart index ca9e865..d89645a 100644 --- a/lib/src/flow_editor_page.dart +++ b/lib/src/flow_editor_page.dart @@ -609,6 +609,14 @@ class _EditorPane extends StatelessWidget { color: theme.colorScheme.onSurface, ); return Row( + // Stretch so the editor's scroll viewport fills the row's + // full vertical extent. Without this the Row defaults to + // CrossAxisAlignment.center, which centers a short file + // vertically — uncomfortable in an IDE where readers + // expect content to always start at the top. Default + // SingleChildScrollView origin is top, so stretching the + // viewport is enough to anchor content at the top edge. + crossAxisAlignment: CrossAxisAlignment.stretch, children: [ Expanded( flex: 3, diff --git a/pubspec.yaml b/pubspec.yaml index 7fd16db..3532f53 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: fai_studio_flow_editor description: Swappable inline YAML editor for F∆I Studio flows. -version: 0.1.2 +version: 0.1.3 publish_to: 'none' repository: https://git.flemming.ai/fai/studio-flow-editor