----------------------------------------------------------------------------- Empty / error placeholder rendering ----------------------------------------------------------------------------- renderEmptyState fills the scrollview with a centred italic placeholder.
(message string, contentWidth int)
| 263 | |
| 264 | // renderEmptyState fills the scrollview with a centred italic placeholder. |
| 265 | func (p *pickerCore) renderEmptyState(message string, contentWidth int) string { |
| 266 | style := styles.DialogContentStyle.Italic(true).Align(lipgloss.Center).Width(contentWidth) |
| 267 | return p.renderPlaceholder(style.Render(message)) |
| 268 | } |
| 269 | |
| 270 | // renderErrorState fills the scrollview with a centred error message. |
| 271 | func (p *pickerCore) renderErrorState(message string, contentWidth int) string { |