mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-18 03:14:39 +01:00
UI: Improve the style of table scrollbars
This commit is contained in:
parent
4628825651
commit
c39c187f47
|
|
@ -1802,8 +1802,7 @@ table {
|
|||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.message-body table {
|
||||
display: block;
|
||||
.table-wrapper {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue