UI: Improve the style of table scrollbars

This commit is contained in:
oobabooga 2026-03-13 03:21:47 -07:00
parent 4628825651
commit c39c187f47
2 changed files with 4 additions and 2 deletions

View file

@ -1802,8 +1802,7 @@ table {
border-collapse: collapse;
}
.message-body table {
display: block;
.table-wrapper {
overflow-x: auto;
}

View file

@ -317,6 +317,9 @@ def process_markdown_content(string):
# Unescape backslashes
html_output = html_output.replace('\\\\', '\\')
# Wrap tables in a scrollable div
html_output = html_output.replace('<table>', '<div class="table-wrapper pretty_scrollbar"><table>').replace('</table>', '</table></div>')
return html_output