fix: revent toolbar max height (#1460)

pull/1593/head
ggurdin 10 months ago committed by GitHub
parent 87fca9f56a
commit 2357751c56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -23,7 +23,7 @@ abstract class AppConfig {
static const double messageFontSize = 16.0; static const double messageFontSize = 16.0;
static const bool allowOtherHomeservers = true; static const bool allowOtherHomeservers = true;
static const bool enableRegistration = true; static const bool enableRegistration = true;
static const double toolbarMaxHeight = 440.0; static const double toolbarMaxHeight = 300.0;
static const double toolbarMinHeight = 175.0; static const double toolbarMinHeight = 175.0;
static const double toolbarMinWidth = 350.0; static const double toolbarMinWidth = 350.0;
static const double toolbarButtonsHeight = 50.0; static const double toolbarButtonsHeight = 50.0;

@ -190,7 +190,7 @@ class MorphologicalCenterWidgetState extends State<MorphologicalCenterWidget> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Container( Container(
constraints: const BoxConstraints(maxWidth: 400, maxHeight: 170), constraints: const BoxConstraints(maxWidth: 400, maxHeight: 120),
child: Scrollbar( child: Scrollbar(
controller: _scrollController, controller: _scrollController,
thumbVisibility: true, thumbVisibility: true,
@ -272,6 +272,12 @@ class MorphologicalCenterWidgetState extends State<MorphologicalCenterWidget> {
// child: Text(L10n.of(context).removeFeature(morphCopy)), // child: Text(L10n.of(context).removeFeature(morphCopy)),
// ), // ),
ElevatedButton( ElevatedButton(
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
padding: const EdgeInsets.symmetric(horizontal: 10),
),
onPressed: () { onPressed: () {
setState(() { setState(() {
editMode = false; editMode = false;
@ -280,6 +286,12 @@ class MorphologicalCenterWidgetState extends State<MorphologicalCenterWidget> {
child: Text(L10n.of(context).cancel), child: Text(L10n.of(context).cancel),
), ),
ElevatedButton( ElevatedButton(
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
padding: const EdgeInsets.symmetric(horizontal: 10),
),
onPressed: selectedMorphTag == onPressed: selectedMorphTag ==
widget.token.morph[widget.morphFeature] widget.token.morph[widget.morphFeature]
? null ? null

Loading…
Cancel
Save