Fix table rendering layout and alignment

This commit is contained in:
SGavrl committed 2026-07-02 21:43:36 +00:00
1 parent f53d60e061
commit ff622c00a0
4 files changed
+70 -6

No files matched your search

+7 -4
View File
@@ -127,12 +127,15 @@ fn paint_text_node(
) -> Option<()> {
let node = tree.get_node(nid)?;
let text = match &node.data {
obscura_dom::tree::NodeData::Text { contents } => contents.trim(),
obscura_dom::tree::NodeData::Text { contents } => {
if contents.trim().is_empty() {
" "
} else {
contents
}
},
_ => return None,
};
if text.is_empty() {
return None;
}
let parent = node.parent?;
let style = laid.styles.get(&parent)?;