Skip to content

Commit

Permalink
fix: Gradio table display with Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
taprosoft committed Nov 19, 2024
1 parent 664df8e commit 8b454db
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions libs/ktem/ktem/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ button.selected {

#chat-area {
height: var(--main-area-height) !important;
column-gap: 2px !important;
}

#chat-info-panel {
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion libs/ktem/ktem/pages/chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand Down

0 comments on commit 8b454db

Please sign in to comment.