add markdown table border line to make text boundary more clear

这个提交包含在:
Junru Shen
2023-03-31 23:40:21 +08:00
父节点 b5b0f6a3ce
当前提交 7b8de7884f
共有 2 个文件被更改,包括 17 次插入4 次删除

14
main.py
查看文件

@@ -37,8 +37,20 @@ gr.Chatbot.postprocess = format_io
from theme import adjust_theme
set_theme = adjust_theme()
CSS = """
.markdown-body table {
border: 1px solid #ddd;
border-collapse: collapse;
}
.markdown-body th, .markdown-body td {
border: 1px solid #ddd;
padding: 5px;
}
"""
cancel_handles = []
with gr.Blocks(theme=set_theme, analytics_enabled=False) as demo:
with gr.Blocks(theme=set_theme, analytics_enabled=False, css=CSS) as demo:
gr.HTML(title_html)
with gr.Row():
with gr.Column(scale=2):