feat: Add Center alignment to ColumnAlignment for comfy-table compatibility

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-08 18:57:59 -03:00
parent 935f829b42
commit 36a584113d
2 changed files with 2 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ pub enum ColumnAlignment {
#[default] #[default]
Left, Left,
Right, Right,
Center,
} }
impl<'de> serde::Deserialize<'de> for ColumnConfig { impl<'de> serde::Deserialize<'de> for ColumnConfig {

View File

@@ -161,6 +161,7 @@ pub fn mode_list(
cell = match column.align { cell = match column.align {
crate::config::ColumnAlignment::Right => cell.set_alignment(CellAlignment::Right), crate::config::ColumnAlignment::Right => cell.set_alignment(CellAlignment::Right),
crate::config::ColumnAlignment::Left => cell.set_alignment(CellAlignment::Left), crate::config::ColumnAlignment::Left => cell.set_alignment(CellAlignment::Left),
crate::config::ColumnAlignment::Center => cell.set_alignment(CellAlignment::Center),
}; };
table_row.add_cell(cell); table_row.add_cell(cell);
} }