fix: Gradio table display with Firefox

This commit is contained in:
Tadashi 2024-11-19 13:35:47 +07:00
parent 664df8ec10
commit 8b454db888
No known key found for this signature in database
GPG Key ID: 399380A00CC9028D
2 changed files with 22 additions and 1 deletions

View File

@ -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;
}

View File

@ -29,7 +29,7 @@ from .control import ConversationControl
from .report import ReportIssue
DEFAULT_SETTING = "(default)"
INFO_PANEL_SCALES = {True: 8, False: 5}
INFO_PANEL_SCALES = {True: 8, False: 4}
pdfview_js = """