fix: revent toolbar max height (#1460)
This commit is contained in:
parent
87fca9f56a
commit
2357751c56
2 changed files with 14 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ abstract class AppConfig {
|
|||
static const double messageFontSize = 16.0;
|
||||
static const bool allowOtherHomeservers = 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 toolbarMinWidth = 350.0;
|
||||
static const double toolbarButtonsHeight = 50.0;
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ class MorphologicalCenterWidgetState extends State<MorphologicalCenterWidget> {
|
|||
),
|
||||
const SizedBox(height: 10),
|
||||
Container(
|
||||
constraints: const BoxConstraints(maxWidth: 400, maxHeight: 170),
|
||||
constraints: const BoxConstraints(maxWidth: 400, maxHeight: 120),
|
||||
child: Scrollbar(
|
||||
controller: _scrollController,
|
||||
thumbVisibility: true,
|
||||
|
|
@ -272,6 +272,12 @@ class MorphologicalCenterWidgetState extends State<MorphologicalCenterWidget> {
|
|||
// child: Text(L10n.of(context).removeFeature(morphCopy)),
|
||||
// ),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||
),
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
editMode = false;
|
||||
|
|
@ -280,6 +286,12 @@ class MorphologicalCenterWidgetState extends State<MorphologicalCenterWidget> {
|
|||
child: Text(L10n.of(context).cancel),
|
||||
),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||
),
|
||||
onPressed: selectedMorphTag ==
|
||||
widget.token.morph[widget.morphFeature]
|
||||
? null
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue