fix: broken background between Background/b and Cancel/c in progress modals
This commit is contained in:
parent
fd2aa80894
commit
7d2a2dd547
1 changed files with 2 additions and 13 deletions
|
|
@ -4352,12 +4352,7 @@ func renderCopyProgressModal(job copyJobState, palette theme.Palette, width int)
|
||||||
}
|
}
|
||||||
lines = append(lines, barAndPct...)
|
lines = append(lines, barAndPct...)
|
||||||
}
|
}
|
||||||
bgStyle := lipgloss.NewStyle().Foreground(palette.Accent).Background(palette.Panel)
|
lines = append(lines, spacer, renderModalNoteLine("Background / b, Cancel / c", contentWidth, palette, mutedStyle))
|
||||||
cancelStyle := lipgloss.NewStyle().Foreground(palette.CancelButton).Background(palette.Panel)
|
|
||||||
bgAndCancel := lipgloss.NewStyle().Width(contentWidth).Background(palette.Panel).Render(
|
|
||||||
bgStyle.Render("Background / b") + " " + cancelStyle.Render("Cancel / c"),
|
|
||||||
)
|
|
||||||
lines = append(lines, spacer, bgAndCancel)
|
|
||||||
if job.background {
|
if job.background {
|
||||||
lines = append(lines, mutedStyle.Render("Transfer continues in background"))
|
lines = append(lines, mutedStyle.Render("Transfer continues in background"))
|
||||||
}
|
}
|
||||||
|
|
@ -4436,13 +4431,7 @@ func renderArchiveProgressModal(job archiveJobState, palette theme.Palette, widt
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
lines = append(lines,
|
lines = append(lines, spacer, renderModalNoteLine("Background / b, Cancel / c", contentWidth, palette, mutedStyle))
|
||||||
spacer,
|
|
||||||
lipgloss.NewStyle().Width(contentWidth).Background(palette.Panel).Render(
|
|
||||||
lipgloss.NewStyle().Foreground(palette.Info).Background(palette.Panel).Render("Background / b")+" "+
|
|
||||||
lipgloss.NewStyle().Foreground(palette.CancelButton).Background(palette.Panel).Render("Cancel / c"),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if job.background {
|
if job.background {
|
||||||
switch job.kind {
|
switch job.kind {
|
||||||
case "extract":
|
case "extract":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue