mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-08 16:13:41 +00:00
UI: Improve the style of table scrollbars
This commit is contained in:
parent
4628825651
commit
c39c187f47
2 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue