Fix KeePassGO open screen field and banner UX
This commit is contained in:
+5
-1
@@ -286,7 +286,10 @@ func selectorEditorHelp(th *material.Theme, label, help string, editor *widget.E
|
||||
return layout.Flex{Axis: layout.Vertical}.Layout(gtx,
|
||||
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
|
||||
return layout.Flex{Alignment: layout.Middle}.Layout(gtx,
|
||||
layout.Flexed(1, labeledEditor(th, label, editor, sensitive)),
|
||||
layout.Flexed(1, func(gtx layout.Context) layout.Dimensions {
|
||||
gtx.Constraints.Min.X = gtx.Constraints.Max.X
|
||||
return labeledEditor(th, label, editor, sensitive)(gtx)
|
||||
}),
|
||||
layout.Rigid(layout.Spacer{Width: unit.Dp(8)}.Layout),
|
||||
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
|
||||
return tonedButton(gtx, th, click, buttonLabel)
|
||||
@@ -336,6 +339,7 @@ func labeledEditorWithFocus(
|
||||
editor.Mask = '•'
|
||||
}
|
||||
defer func() { editor.Mask = mask }()
|
||||
gtx.Constraints.Min.X = gtx.Constraints.Max.X
|
||||
ed := material.Editor(th, editor, label)
|
||||
return layout.UniformInset(unit.Dp(8)).Layout(gtx, ed.Layout)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user