term: Rename `Row::Divid{i,}er`

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2026-04-29 07:58:29 -04:00
parent 08dd1dfda7
commit a101705012
1 changed files with 5 additions and 5 deletions

View File

@ -22,21 +22,21 @@ impl Default for VStackOptions {
enum Row<'a> { enum Row<'a> {
Element(Box<dyn Element + 'a>), Element(Box<dyn Element + 'a>),
#[default] #[default]
Dividier, Divider,
} }
impl Row<'_> { impl Row<'_> {
fn width(&self, c: Constraint) -> usize { fn width(&self, c: Constraint) -> usize {
match self { match self {
Self::Element(e) => e.columns(c), Self::Element(e) => e.columns(c),
Self::Dividier => c.min.cols, Self::Divider => c.min.cols,
} }
} }
fn height(&self, c: Constraint) -> usize { fn height(&self, c: Constraint) -> usize {
match self { match self {
Self::Element(e) => e.rows(c), Self::Element(e) => e.rows(c),
Self::Dividier => 1, Self::Divider => 1,
} }
} }
} }
@ -62,7 +62,7 @@ impl<'a> VStack<'a> {
/// Add a horizontal divider. /// Add a horizontal divider.
pub fn divider(mut self) -> Self { pub fn divider(mut self) -> Self {
self.rows.push(Row::Dividier); self.rows.push(Row::Divider);
self self
} }
@ -177,7 +177,7 @@ impl Element for VStack<'_> {
} }
} }
} }
Row::Dividier => { Row::Divider => {
if let Some(color) = self.opts.border { if let Some(color) = self.opts.border {
lines.push( lines.push(
Line::default() Line::default()