Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
•
d70f27b
1
Parent(s):
ebd3a13
WIP: make history message a list
Browse files
web_assets/stylesheet/ChuanhuChat.css
CHANGED
@@ -19,6 +19,9 @@
|
|
19 |
--chatbot-input-more-background-fullwidth-hover: #FFFFFF99;
|
20 |
--chatbot-input-more-background-mobilewidth-hover: #E6E6E644;
|
21 |
|
|
|
|
|
|
|
22 |
--menu-width: 320px;
|
23 |
--menu-background-fill: var(--background-fill-primary);
|
24 |
|
@@ -32,6 +35,9 @@
|
|
32 |
--chatbot-input-more-background-solid-color: #3C3C3C;
|
33 |
--chatbot-input-more-background-fullwidth-hover: #2F2F2F88;
|
34 |
--chatbot-input-more-background-mobilewidth-hover: #1F1F1F44;
|
|
|
|
|
|
|
35 |
}
|
36 |
}
|
37 |
|
|
|
19 |
--chatbot-input-more-background-fullwidth-hover: #FFFFFF99;
|
20 |
--chatbot-input-more-background-mobilewidth-hover: #E6E6E644;
|
21 |
|
22 |
+
--message-list-background-hover: #F3F3F3;
|
23 |
+
--message-list-background-selected: #EAEAEA;
|
24 |
+
|
25 |
--menu-width: 320px;
|
26 |
--menu-background-fill: var(--background-fill-primary);
|
27 |
|
|
|
35 |
--chatbot-input-more-background-solid-color: #3C3C3C;
|
36 |
--chatbot-input-more-background-fullwidth-hover: #2F2F2F88;
|
37 |
--chatbot-input-more-background-mobilewidth-hover: #1F1F1F44;
|
38 |
+
|
39 |
+
--message-list-background-hover: #202020;
|
40 |
+
--message-list-background-selected: #2F3030;
|
41 |
}
|
42 |
}
|
43 |
|
web_assets/stylesheet/override-gradio.css
CHANGED
@@ -23,6 +23,45 @@ footer {
|
|
23 |
margin-top: 64px;
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
/* 覆盖 gradio 丑陋的复制按钮样式 */
|
27 |
.message .code_wrap button[title="copy"] {
|
28 |
border-radius: 5px !important;
|
|
|
23 |
margin-top: 64px;
|
24 |
}
|
25 |
|
26 |
+
|
27 |
+
/* 把radio做成列表 */
|
28 |
+
fieldset#history-select-dropdown .wrap {
|
29 |
+
gap: 0;
|
30 |
+
}
|
31 |
+
fieldset#history-select-dropdown .wrap label {
|
32 |
+
width: 100%;
|
33 |
+
background: none;
|
34 |
+
padding: 10px 16px 10px;
|
35 |
+
box-shadow: none;
|
36 |
+
}
|
37 |
+
fieldset#history-select-dropdown .wrap label:hover {
|
38 |
+
background: var(--message-list-background-hover);
|
39 |
+
}
|
40 |
+
fieldset#history-select-dropdown .wrap label:active {
|
41 |
+
background: var(--message-list-background-selected);
|
42 |
+
}
|
43 |
+
fieldset#history-select-dropdown .wrap label.selected {
|
44 |
+
background: var(--message-list-background-selected);
|
45 |
+
}
|
46 |
+
fieldset#history-select-dropdown .wrap label > span {
|
47 |
+
/* font-size: small; */
|
48 |
+
margin-left: 0;
|
49 |
+
color: var(--checkbox-label-text-color);
|
50 |
+
}
|
51 |
+
fieldset#history-select-dropdown .wrap label > span::before {
|
52 |
+
content: url("data:image/svg+xml,%3Csvg stroke='%23000000' fill='none' stroke-opacity='0.85' stroke-width='2' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
|
53 |
+
padding-right: .8em;
|
54 |
+
position: relative;
|
55 |
+
top: 4px;
|
56 |
+
}
|
57 |
+
.dark fieldset#history-select-dropdown .wrap label > span::before {
|
58 |
+
content: url("data:image/svg+xml,%3Csvg stroke='%23FFFFFF' fill='none' stroke-opacity='0.85' stroke-width='2' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
|
59 |
+
}
|
60 |
+
fieldset#history-select-dropdown .wrap label > input {
|
61 |
+
display: none;
|
62 |
+
}
|
63 |
+
|
64 |
+
|
65 |
/* 覆盖 gradio 丑陋的复制按钮样式 */
|
66 |
.message .code_wrap button[title="copy"] {
|
67 |
border-radius: 5px !important;
|