Skip to content

Commit

Permalink
ensure a minimum height for the preview pane; there should be a bette…
Browse files Browse the repository at this point in the history
…r way of doing this. fixes #7
  • Loading branch information
David Hobley committed Jan 23, 2025
1 parent c49052a commit d88f296
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/providers/preview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class Preview extends _$Preview {
}

void changeHeight(double delta) {
state = state.copyWith(height: state.height + delta);
if (state.height + delta > 250) {
state = state.copyWith(height: state.height + delta);
}
}
}

0 comments on commit d88f296

Please sign in to comment.