mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:23:33 +00:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user