Skip to content

Commit 8b454db

Browse files
committed
fix: Gradio table display with Firefox
1 parent 664df8e commit 8b454db

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

libs/ktem/ktem/assets/css/main.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ button.selected {
8383

8484
#chat-area {
8585
height: var(--main-area-height) !important;
86+
column-gap: 2px !important;
8687
}
8788

8889
#chat-info-panel {
@@ -96,12 +97,32 @@ button.selected {
9697
overflow-y: scroll !important;
9798
position: sticky;
9899
min-width: min(305px, 100%) !important;
100+
column-gap: 2px !important;
101+
scrollbar-width: none;
102+
/* Firefox */
103+
-ms-overflow-style: none;
104+
/* Internet Explorer 10+ */
105+
}
106+
107+
#conv-settings-panel::-webkit-scrollbar {
108+
/* WebKit */
109+
width: 0;
110+
height: 0;
111+
}
112+
113+
td {
114+
/* Fix for Firefox Gradio table overflow display */
115+
overflow: hidden;
99116
}
100117

101118
.setting-answer-mode-description {
102119
margin: 5px 5px 2px !important;
103120
}
104121

122+
.message-buttons-right {
123+
display: none !important;
124+
}
125+
105126
mark {
106127
background-color: #10b981;
107128
}

libs/ktem/ktem/pages/chat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from .report import ReportIssue
3030

3131
DEFAULT_SETTING = "(default)"
32-
INFO_PANEL_SCALES = {True: 8, False: 5}
32+
INFO_PANEL_SCALES = {True: 8, False: 4}
3333

3434

3535
pdfview_js = """

0 commit comments

Comments
 (0)