MCPcopy
hub / github.com/basecamp/once / CenteredLine

Method CenteredLine

internal/ui/styles.go:85–87  ·  view source on GitHub ↗
(width int, content string)

Source from the content-addressed store, hash-verified

83}
84
85func (s styles) CenteredLine(width int, content string) string {
86 return lipgloss.NewStyle().Width(width).Align(lipgloss.Center).Render(content)
87}
88
89// OverlayCenter composites fg centered on top of bg within the given dimensions.
90func OverlayCenter(bg, fg string, width, height int) string {

Callers 8

ViewMethod · 0.80
TestCenteredLineFunction · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
renderActionCompleteMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestCenteredLineFunction · 0.64