ui(tui/assistant): remove inner top/bottom + left/right padding inside code cards\n\n- Set Block padding to 0 on all sides\n- Borders only; card width = content + 2\n- Matches earlier height math (+2 only) and no L/R stripes

This commit is contained in:
James Peter
2025-08-29 18:53:11 +10:00
parent 97a91e8438
commit beaa1c7b64
+1 -6
View File
@@ -828,12 +828,7 @@ impl HistoryCell for AssistantMarkdownCell {
.borders(Borders::ALL)
.border_style(Style::default().fg(crate::colors::border()))
.style(Style::default().bg(code_bg))
.padding(Padding {
left: 1,
right: 1,
top: 1,
bottom: 1,
});
.padding(Padding { left: 0, right: 0, top: 0, bottom: 0 });
if let Some(lang) = &lang_label {
blk = blk.title(Span::styled(
format!(" {} ", lang),