File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ button.selected {
95
95
flex-wrap : unset;
96
96
overflow-y : scroll !important ;
97
97
position : sticky;
98
+ min-width : min (305px , 100% ) !important ;
98
99
}
99
100
100
101
.setting-answer-mode-description {
@@ -160,13 +161,13 @@ mark {
160
161
# toggle-dark-button {
161
162
position : fixed;
162
163
top : 6px ;
163
- right : 60 px ;
164
+ right : 30 px ;
164
165
}
165
166
166
167
# info-expand-button {
167
- position : fixed ;
168
+ position : absolute ;
168
169
top : 6px ;
169
- right : 85 px ;
170
+ right : 15 px ;
170
171
}
171
172
172
173
# new-conv-button > img {
@@ -175,6 +176,10 @@ mark {
175
176
right : -50% ;
176
177
}
177
178
179
+ span .icon {
180
+ color : # cecece ;
181
+ }
182
+
178
183
.upload-button {
179
184
display : none;
180
185
}
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ function run() {
11
11
version_node . style = "position: fixed; top: 10px; right: 10px;" ;
12
12
main_parent . appendChild ( version_node ) ;
13
13
14
+ // move info-expand-button
15
+ let info_expand_button = document . getElementById ( "info-expand-button" ) ;
16
+ let chat_info_panel = document . getElementById ( "info-expand" ) ;
17
+ chat_info_panel . insertBefore ( info_expand_button , chat_info_panel . childNodes [ 2 ] ) ;
18
+
14
19
// clpse
15
20
globalThis . clpseFn = ( id ) => {
16
21
var obj = document . getElementById ( 'clpse-btn-' + id ) ;
Original file line number Diff line number Diff line change 29
29
from .report import ReportIssue
30
30
31
31
DEFAULT_SETTING = "(default)"
32
- INFO_PANEL_SCALES = {True : 8 , False : 4 }
32
+ INFO_PANEL_SCALES = {True : 8 , False : 5 }
33
33
34
34
35
35
pdfview_js = """
@@ -169,7 +169,9 @@ def on_building_ui(self):
169
169
with gr .Column (
170
170
scale = INFO_PANEL_SCALES [False ], elem_id = "chat-info-panel"
171
171
) as self .info_column :
172
- with gr .Accordion (label = "Information panel" , open = True ):
172
+ with gr .Accordion (
173
+ label = "Information panel" , open = True , elem_id = "info-expand"
174
+ ):
173
175
self .modal = gr .HTML ("<div id='pdf-modal'></div>" )
174
176
self .plot_panel = gr .Plot (visible = False )
175
177
self .info_panel = gr .HTML (elem_id = "html-info-panel" )
You can’t perform that action at this time.
0 commit comments