fix: relocate information panel expand button bump:patch
This commit is contained in:
parent
74124323e8
commit
db2737d309
|
@ -95,6 +95,7 @@ button.selected {
|
||||||
flex-wrap: unset;
|
flex-wrap: unset;
|
||||||
overflow-y: scroll !important;
|
overflow-y: scroll !important;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
min-width: min(305px, 100%) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.setting-answer-mode-description {
|
.setting-answer-mode-description {
|
||||||
|
@ -160,13 +161,13 @@ mark {
|
||||||
#toggle-dark-button {
|
#toggle-dark-button {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 6px;
|
top: 6px;
|
||||||
right: 60px;
|
right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#info-expand-button {
|
#info-expand-button {
|
||||||
position: fixed;
|
position: absolute;
|
||||||
top: 6px;
|
top: 6px;
|
||||||
right: 85px;
|
right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-conv-button > img {
|
#new-conv-button > img {
|
||||||
|
@ -175,6 +176,10 @@ mark {
|
||||||
right: -50%;
|
right: -50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span.icon {
|
||||||
|
color: #cecece;
|
||||||
|
}
|
||||||
|
|
||||||
.upload-button {
|
.upload-button {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,11 @@ function run() {
|
||||||
version_node.style = "position: fixed; top: 10px; right: 10px;";
|
version_node.style = "position: fixed; top: 10px; right: 10px;";
|
||||||
main_parent.appendChild(version_node);
|
main_parent.appendChild(version_node);
|
||||||
|
|
||||||
|
// move info-expand-button
|
||||||
|
let info_expand_button = document.getElementById("info-expand-button");
|
||||||
|
let chat_info_panel = document.getElementById("info-expand");
|
||||||
|
chat_info_panel.insertBefore(info_expand_button, chat_info_panel.childNodes[2]);
|
||||||
|
|
||||||
// clpse
|
// clpse
|
||||||
globalThis.clpseFn = (id) => {
|
globalThis.clpseFn = (id) => {
|
||||||
var obj = document.getElementById('clpse-btn-' + id);
|
var obj = document.getElementById('clpse-btn-' + id);
|
||||||
|
|
|
@ -29,7 +29,7 @@ from .control import ConversationControl
|
||||||
from .report import ReportIssue
|
from .report import ReportIssue
|
||||||
|
|
||||||
DEFAULT_SETTING = "(default)"
|
DEFAULT_SETTING = "(default)"
|
||||||
INFO_PANEL_SCALES = {True: 8, False: 4}
|
INFO_PANEL_SCALES = {True: 8, False: 5}
|
||||||
|
|
||||||
|
|
||||||
pdfview_js = """
|
pdfview_js = """
|
||||||
|
@ -169,7 +169,9 @@ class ChatPage(BasePage):
|
||||||
with gr.Column(
|
with gr.Column(
|
||||||
scale=INFO_PANEL_SCALES[False], elem_id="chat-info-panel"
|
scale=INFO_PANEL_SCALES[False], elem_id="chat-info-panel"
|
||||||
) as self.info_column:
|
) as self.info_column:
|
||||||
with gr.Accordion(label="Information panel", open=True):
|
with gr.Accordion(
|
||||||
|
label="Information panel", open=True, elem_id="info-expand"
|
||||||
|
):
|
||||||
self.modal = gr.HTML("<div id='pdf-modal'></div>")
|
self.modal = gr.HTML("<div id='pdf-modal'></div>")
|
||||||
self.plot_panel = gr.Plot(visible=False)
|
self.plot_panel = gr.Plot(visible=False)
|
||||||
self.info_panel = gr.HTML(elem_id="html-info-panel")
|
self.info_panel = gr.HTML(elem_id="html-info-panel")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user