From 2b1029c7bcfb2a116116abaae49cf4f9dd50f6a4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 23 Nov 2019 02:24:47 -0500 Subject: comment --- teleterm-web/src/views/terminal.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'teleterm-web') diff --git a/teleterm-web/src/views/terminal.rs b/teleterm-web/src/views/terminal.rs index a8a0ba0..e211dd9 100644 --- a/teleterm-web/src/views/terminal.rs +++ b/teleterm-web/src/views/terminal.rs @@ -15,10 +15,17 @@ pub(crate) fn render(model: &crate::model::Model) -> Node { let mut row = vec![]; for col_idx in 0..cols { let cell = screen.cell(row_idx, col_idx).unwrap(); + let mut contents = cell.contents(); + // if we don't use a non-breaking space for cells with no + // foreground contents, the table layout may just collapse those + // cells. we can't just set a fixed height because there's no way + // (that i'm aware of) in css to set a box to have a fixed height + // that is the same as the line height of the current font. if contents.trim().is_empty() || contents.width() == 0 { contents = "\u{00a0}".to_string(); } + row.push(seed::td![ seed::attrs! { At::Class => "cell" }, style_for_cell( -- cgit v1.2.3-54-g00ecf