Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(confirm): configurable alignment of choices line #1090

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxenglander
Copy link

@maxenglander maxenglander commented Mar 31, 2025

Description

Currently confirm-kind events that are confirm-formatted have the choices line unconditionally padded to achieve center alignment.

Retain this behavior as the default, but allow users to left- and right-align as alternative options, e.g.:

{  
  opts = {
    views = {
      confirm = {
        format = {
          { "{confirm}", choices = { align = "left" } },
        },
      },
    },
  },
}

Related Issue(s)

Closes #1089

Screenshots

format = {
  { "{confirm}", choices = { align = "left" } },
}
image
format = {
  { "{confirm}" },
}
image
format = {
  { "{confirm}", choices = { align = "right" } },
}
image

@maxenglander maxenglander force-pushed the maxeng-feat-confirm-choice-align branch from 272c9a9 to d19330c Compare March 31, 2025 05:40
@maxenglander maxenglander marked this pull request as ready for review March 31, 2025 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: user control over button padding in confirm view
1 participant