web: contain markdown tables inside the phone transcript
Wrap each table in its own scroll frame and let the markdown grid shrink, so a wide table scrolls sideways instead of pushing the chat content past its div.
This commit is contained in:
@@ -3184,7 +3184,10 @@ function renderMarkdownBlock(block) {
|
||||
body.append(tr);
|
||||
}
|
||||
table.append(body);
|
||||
return table;
|
||||
// A markdown table must never widen the message bubble. Scroll it sideways
|
||||
// inside its own frame on a phone instead of pushing the transcript past its
|
||||
// right edge.
|
||||
return h("div", { class: "md-table-wrap" }, table);
|
||||
}
|
||||
// Anything outside the subset stays plain text and is never dropped.
|
||||
return h("p", { class: "md-paragraph", text: block.text ?? "" });
|
||||
|
||||
Reference in New Issue
Block a user