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:
@@ -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 {
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user