diff --git a/lib/features/profile/details/json_editor.dart b/lib/features/profile/details/json_editor.dart index c53c0ed0..a38378b8 100644 --- a/lib/features/profile/details/json_editor.dart +++ b/lib/features/profile/details/json_editor.dart @@ -426,6 +426,7 @@ class _JsonEditorState extends State { ), child: Row( children: [ + const Text('Config Editor: '), if (!widget.hideEditorsMenuButton) PopupMenuButton( initialValue: _editor, @@ -554,8 +555,9 @@ class _JsonEditorState extends State { child: TextFormField( controller: _controller, onChanged: parseData, - maxLines: 10, - // expands: true, + maxLines: null, + minLines: null, + expands: true, textAlignVertical: TextAlignVertical.top, decoration: const InputDecoration( border: InputBorder.none, diff --git a/lib/features/profile/details/profile_details_page.dart b/lib/features/profile/details/profile_details_page.dart index 0de8e160..ba1d8976 100644 --- a/lib/features/profile/details/profile_details_page.dart +++ b/lib/features/profile/details/profile_details_page.dart @@ -274,7 +274,7 @@ class ProfileDetailsPage extends HookConsumerWidget with PresLogger { ], if (state.isEditing) ...[ SizedBox( - height: MediaQuery.of(context).size.height * 0.8, + height: MediaQuery.of(context).size.height * 0.9, child: JsonEditor( expandedObjects: const ["outbounds"], onChanged: (value) {