Fix KeePassGO open screen field and banner UX

This commit is contained in:
Joe Julian
2026-03-29 15:35:32 -07:00
parent fc9580403d
commit 761fae9b9b
3 changed files with 24 additions and 7 deletions
+5 -1
View File
@@ -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)
})