From 8b454db88881bf1e7cf6ddc724e957df02982cde Mon Sep 17 00:00:00 2001 From: Tadashi Date: Tue, 19 Nov 2024 13:35:47 +0700 Subject: [PATCH] fix: Gradio table display with Firefox --- libs/ktem/ktem/assets/css/main.css | 21 +++++++++++++++++++++ libs/ktem/ktem/pages/chat/__init__.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/libs/ktem/ktem/assets/css/main.css b/libs/ktem/ktem/assets/css/main.css index 1abf36e8..e8de1ff8 100644 --- a/libs/ktem/ktem/assets/css/main.css +++ b/libs/ktem/ktem/assets/css/main.css @@ -83,6 +83,7 @@ button.selected { #chat-area { height: var(--main-area-height) !important; + column-gap: 2px !important; } #chat-info-panel { @@ -96,12 +97,32 @@ button.selected { overflow-y: scroll !important; position: sticky; min-width: min(305px, 100%) !important; + column-gap: 2px !important; + scrollbar-width: none; + /* Firefox */ + -ms-overflow-style: none; + /* Internet Explorer 10+ */ +} + +#conv-settings-panel::-webkit-scrollbar { + /* WebKit */ + width: 0; + height: 0; +} + +td { + /* Fix for Firefox Gradio table overflow display */ + overflow: hidden; } .setting-answer-mode-description { margin: 5px 5px 2px !important; } +.message-buttons-right { + display: none !important; +} + mark { background-color: #10b981; } diff --git a/libs/ktem/ktem/pages/chat/__init__.py b/libs/ktem/ktem/pages/chat/__init__.py index 571c8102..df421561 100644 --- a/libs/ktem/ktem/pages/chat/__init__.py +++ b/libs/ktem/ktem/pages/chat/__init__.py @@ -29,7 +29,7 @@ from .report import ReportIssue DEFAULT_SETTING = "(default)" -INFO_PANEL_SCALES = {True: 8, False: 5} +INFO_PANEL_SCALES = {True: 8, False: 4} pdfview_js = """