Skip to content

Commit

Permalink
Merge pull request #1482 from nextcloud/fix/neon_framework/settings-p…
Browse files Browse the repository at this point in the history
…age-height
  • Loading branch information
provokateurin authored Jan 23, 2024
2 parents 39d5129 + ac0e1de commit 87eb873
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/neon_framework/lib/src/theme/dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class NeonDialogTheme {
this.constraints = const BoxConstraints(
minWidth: 280,
maxWidth: 560,
maxHeight: 560 * 1.5,
),
this.padding = const EdgeInsets.all(24),
});
Expand Down
4 changes: 3 additions & 1 deletion packages/neon_framework/lib/src/widgets/dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,12 @@ class NeonEmojiPickerDialog extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final constraints = NeonDialogTheme.of(context).constraints;

return NeonDialog(
content: SizedBox(
width: NeonDialogTheme.of(context).constraints.maxWidth,
width: constraints.maxWidth,
height: constraints.maxWidth * 1.5,
child: EmojiPicker(
config: Config(
emojiSizeMax: 25,
Expand Down

0 comments on commit 87eb873

Please sign in to comment.