From 9269c4b488ee362ce2f2373187f88961d156887d Mon Sep 17 00:00:00 2001 From: Joe Julian Date: Fri, 3 Apr 2026 10:45:47 -0700 Subject: [PATCH] Remove redundant recycle bin notice --- main.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/main.go b/main.go index 59cd223..156db78 100644 --- a/main.go +++ b/main.go @@ -4186,12 +4186,6 @@ func (u *ui) listPanel(gtx layout.Context) layout.Dimensions { }) } } - if !u.isVaultLocked() && u.state.Section == appstate.SectionRecycleBin { - rows = append(rows, u.recycleBinSectionNotice) - rows = append(rows, func(gtx layout.Context) layout.Dimensions { - return layout.Spacer{Height: spacing}.Layout(gtx) - }) - } if !u.isVaultLocked() && (u.state.Section == appstate.SectionEntries || u.state.Section == appstate.SectionRecycleBin) { rows = append(rows, u.pathBar) rows = append(rows, func(gtx layout.Context) layout.Dimensions { @@ -4255,18 +4249,6 @@ func (u *ui) listPanel(gtx layout.Context) layout.Dimensions { return u.navigationHeader(gtx) }), layout.Rigid(layout.Spacer{Height: spacing}.Layout), - layout.Rigid(func(gtx layout.Context) layout.Dimensions { - if u.isVaultLocked() || u.state.Section != appstate.SectionRecycleBin { - return layout.Dimensions{} - } - return u.recycleBinSectionNotice(gtx) - }), - layout.Rigid(layout.Spacer{Height: func() unit.Dp { - if u.isVaultLocked() || u.state.Section != appstate.SectionRecycleBin { - return 0 - } - return spacing - }()}.Layout), layout.Rigid(func(gtx layout.Context) layout.Dimensions { if u.isVaultLocked() || (u.state.Section != appstate.SectionEntries && u.state.Section != appstate.SectionRecycleBin) { return layout.Dimensions{} @@ -5751,10 +5733,6 @@ func recyclePathCard(gtx layout.Context, th *material.Theme, title, body string) }) } -func (u *ui) recycleBinSectionNotice(gtx layout.Context) layout.Dimensions { - return recyclePathCard(gtx, u.theme, "Recycle Bin", "Deleted entries are separated from normal browsing so you can review or restore them safely.") -} - func recycleDetailTitle(gtx layout.Context, th *material.Theme, title string) layout.Dimensions { return layout.Background{}.Layout(gtx, fill(color.NRGBA{R: 247, G: 239, B: 231, A: 255}), func(gtx layout.Context) layout.Dimensions { return layout.UniformInset(unit.Dp(10)).Layout(gtx, func(gtx layout.Context) layout.Dimensions {