From 39f16ff83d3a948c36126b43f1ba86c7f85ff015 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 10 Oct 2023 18:45:12 -0700 Subject: [PATCH] Fix default/notebook tabs css --- css/html_readable_style.css | 12 ++++++------ modules/html_generator.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/css/html_readable_style.css b/css/html_readable_style.css index 2cfa6f2b..cb260f1a 100644 --- a/css/html_readable_style.css +++ b/css/html_readable_style.css @@ -1,4 +1,4 @@ -.container { +.readable-container { max-width: 600px; margin-left: auto; margin-right: auto; @@ -9,25 +9,25 @@ color: #efefef !important; } -.container p, .container li { +.readable-container p, .readable-container li { font-size: 16px !important; color: #efefef !important; margin-bottom: 22px; line-height: 1.4 !important; } -.container li > p { +.readable-container li > p { display: inline !important; } -.container code { +.readable-container code { overflow-x: auto; } -.container :not(pre) > code { +.readable-container :not(pre) > code { white-space: normal !important; } -.container .hoverable { +.readable-container .hoverable { font-size: 14px; } \ No newline at end of file diff --git a/modules/html_generator.py b/modules/html_generator.py index d3e122fd..26e47848 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -100,7 +100,7 @@ def convert_to_markdown(string): def generate_basic_html(string): string = convert_to_markdown(string) - string = f'
{string}
' + string = f'
{string}
' return string