Spaces:
Running
Running
ai: ChatGPT-style like.
Browse files- assets/css/chat/bubble.css +6 -4
- assets/css/chat/markdown.css +4 -11
- assets/css/chat/style.css +1 -1
- assets/css/footer.css +2 -2
- assets/css/icon.css +2 -2
- assets/css/input.css +1 -1
- assets/css/style.css +3 -2
- src/frontend/loader.html +1 -1
assets/css/chat/bubble.css
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
overflow-wrap: break-word;
|
| 21 |
word-break: break-word;
|
| 22 |
vertical-align: middle;
|
| 23 |
-
padding: 1rem
|
| 24 |
box-sizing: border-box;
|
| 25 |
max-width: 100%;
|
| 26 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
@@ -42,13 +42,15 @@
|
|
| 42 |
|
| 43 |
.bubble-user {
|
| 44 |
align-self: flex-end;
|
| 45 |
-
background:
|
| 46 |
color: #fff;
|
| 47 |
border-bottom-right-radius: 0.5rem;
|
| 48 |
-
box-shadow:
|
| 49 |
}
|
| 50 |
|
| 51 |
.bubble-assist {
|
| 52 |
align-self: flex-start;
|
| 53 |
-
background:
|
|
|
|
|
|
|
| 54 |
}
|
|
|
|
| 20 |
overflow-wrap: break-word;
|
| 21 |
word-break: break-word;
|
| 22 |
vertical-align: middle;
|
| 23 |
+
padding: 1rem 1rem;
|
| 24 |
box-sizing: border-box;
|
| 25 |
max-width: 100%;
|
| 26 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
|
| 42 |
|
| 43 |
.bubble-user {
|
| 44 |
align-self: flex-end;
|
| 45 |
+
background: #2b2b2b;
|
| 46 |
color: #fff;
|
| 47 |
border-bottom-right-radius: 0.5rem;
|
| 48 |
+
box-shadow: none;
|
| 49 |
}
|
| 50 |
|
| 51 |
.bubble-assist {
|
| 52 |
align-self: flex-start;
|
| 53 |
+
background: transparent;
|
| 54 |
+
border: none;
|
| 55 |
+
box-shadow: none;
|
| 56 |
}
|
assets/css/chat/markdown.css
CHANGED
|
@@ -66,13 +66,8 @@
|
|
| 66 |
max-width: 200px;
|
| 67 |
}
|
| 68 |
|
| 69 |
-
.md-content th {
|
| 70 |
-
background: rgba(
|
| 71 |
-
font-weight: 600;
|
| 72 |
-
}
|
| 73 |
-
|
| 74 |
-
.md-content tbody tr:nth-child(odd) td {
|
| 75 |
-
background: rgba(255, 255, 255, 0.05);
|
| 76 |
}
|
| 77 |
|
| 78 |
.md-content ul {
|
|
@@ -119,7 +114,6 @@
|
|
| 119 |
left: 1em;
|
| 120 |
top: 0;
|
| 121 |
font-size: 1.2em;
|
| 122 |
-
color: var(--color-primary);
|
| 123 |
}
|
| 124 |
|
| 125 |
.md-content ol > li {
|
|
@@ -134,14 +128,13 @@
|
|
| 134 |
min-width: 2.5em;
|
| 135 |
text-align: right;
|
| 136 |
padding-right: 0.5em;
|
| 137 |
-
color: var(--color-primary);
|
| 138 |
font-weight: 500;
|
| 139 |
}
|
| 140 |
|
| 141 |
.md-content hr {
|
| 142 |
border: 0;
|
| 143 |
height: 2px;
|
| 144 |
-
background:
|
| 145 |
margin: 1.2rem 0;
|
| 146 |
border-radius: 2px;
|
| 147 |
}
|
|
@@ -166,6 +159,6 @@
|
|
| 166 |
}
|
| 167 |
|
| 168 |
.md-content table td pre, .md-content table th pre {
|
| 169 |
-
max-
|
| 170 |
overflow: auto;
|
| 171 |
}
|
|
|
|
| 66 |
max-width: 200px;
|
| 67 |
}
|
| 68 |
|
| 69 |
+
.md-content th, tbody tr:nth-child(odd) td {
|
| 70 |
+
background: rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
}
|
| 72 |
|
| 73 |
.md-content ul {
|
|
|
|
| 114 |
left: 1em;
|
| 115 |
top: 0;
|
| 116 |
font-size: 1.2em;
|
|
|
|
| 117 |
}
|
| 118 |
|
| 119 |
.md-content ol > li {
|
|
|
|
| 128 |
min-width: 2.5em;
|
| 129 |
text-align: right;
|
| 130 |
padding-right: 0.5em;
|
|
|
|
| 131 |
font-weight: 500;
|
| 132 |
}
|
| 133 |
|
| 134 |
.md-content hr {
|
| 135 |
border: 0;
|
| 136 |
height: 2px;
|
| 137 |
+
background: #ffffff;
|
| 138 |
margin: 1.2rem 0;
|
| 139 |
border-radius: 2px;
|
| 140 |
}
|
|
|
|
| 159 |
}
|
| 160 |
|
| 161 |
.md-content table td pre, .md-content table th pre {
|
| 162 |
+
max-width: 480px;
|
| 163 |
overflow: auto;
|
| 164 |
}
|
assets/css/chat/style.css
CHANGED
|
@@ -49,7 +49,7 @@
|
|
| 49 |
width: 100%;
|
| 50 |
height: 100%;
|
| 51 |
overflow-y: auto;
|
| 52 |
-
padding: 0.75rem
|
| 53 |
box-sizing: border-box;
|
| 54 |
max-width: 100%;
|
| 55 |
overflow-wrap: break-word;
|
|
|
|
| 49 |
width: 100%;
|
| 50 |
height: 100%;
|
| 51 |
overflow-y: auto;
|
| 52 |
+
padding: 0.75rem 0.75rem calc(var(--footer-height) + 1rem) 1rem;
|
| 53 |
box-sizing: border-box;
|
| 54 |
max-width: 100%;
|
| 55 |
overflow-wrap: break-word;
|
assets/css/footer.css
CHANGED
|
@@ -12,10 +12,10 @@
|
|
| 12 |
max-width: 100%;
|
| 13 |
box-sizing: border-box;
|
| 14 |
position: fixed;
|
| 15 |
-
bottom:
|
| 16 |
left: 0;
|
| 17 |
right: 0;
|
| 18 |
z-index: 1000;
|
| 19 |
animation: slideInUp 0.3s ease-out forwards;
|
| 20 |
-
height:
|
| 21 |
}
|
|
|
|
| 12 |
max-width: 100%;
|
| 13 |
box-sizing: border-box;
|
| 14 |
position: fixed;
|
| 15 |
+
bottom: 5rem;
|
| 16 |
left: 0;
|
| 17 |
right: 0;
|
| 18 |
z-index: 1000;
|
| 19 |
animation: slideInUp 0.3s ease-out forwards;
|
| 20 |
+
height: 0;
|
| 21 |
}
|
assets/css/icon.css
CHANGED
|
@@ -49,7 +49,7 @@
|
|
| 49 |
display: flex;
|
| 50 |
align-items: center;
|
| 51 |
justify-content: center;
|
| 52 |
-
padding: 0
|
| 53 |
color: #9ca3af;
|
| 54 |
cursor: pointer;
|
| 55 |
transition: all 0.2s ease;
|
|
@@ -64,7 +64,7 @@
|
|
| 64 |
display: flex;
|
| 65 |
align-items: center;
|
| 66 |
justify-content: center;
|
| 67 |
-
padding: 0
|
| 68 |
gap: 0.5rem;
|
| 69 |
}
|
| 70 |
|
|
|
|
| 49 |
display: flex;
|
| 50 |
align-items: center;
|
| 51 |
justify-content: center;
|
| 52 |
+
padding: 0.2rem;
|
| 53 |
color: #9ca3af;
|
| 54 |
cursor: pointer;
|
| 55 |
transition: all 0.2s ease;
|
|
|
|
| 64 |
display: flex;
|
| 65 |
align-items: center;
|
| 66 |
justify-content: center;
|
| 67 |
+
padding: 0.2rem;
|
| 68 |
gap: 0.5rem;
|
| 69 |
}
|
| 70 |
|
assets/css/input.css
CHANGED
|
@@ -25,7 +25,7 @@
|
|
| 25 |
|
| 26 |
#userInput {
|
| 27 |
flex: 1;
|
| 28 |
-
padding: 0.75rem
|
| 29 |
border-radius: 2rem;
|
| 30 |
border: 1px solid transparent;
|
| 31 |
background-color: transparent;
|
|
|
|
| 25 |
|
| 26 |
#userInput {
|
| 27 |
flex: 1;
|
| 28 |
+
padding: 0.75rem 0.75rem;
|
| 29 |
border-radius: 2rem;
|
| 30 |
border: 1px solid transparent;
|
| 31 |
background-color: transparent;
|
assets/css/style.css
CHANGED
|
@@ -81,8 +81,9 @@ main {
|
|
| 81 |
|
| 82 |
.system {
|
| 83 |
text-align: center;
|
| 84 |
-
margin-top:
|
| 85 |
-
|
|
|
|
| 86 |
color: #9ca3af;
|
| 87 |
word-break: break-word;
|
| 88 |
overflow-wrap: break-word;
|
|
|
|
| 81 |
|
| 82 |
.system {
|
| 83 |
text-align: center;
|
| 84 |
+
margin-top: 5rem;
|
| 85 |
+
margin-bottom: 5rem;
|
| 86 |
+
font-size: 0.7rem;
|
| 87 |
color: #9ca3af;
|
| 88 |
word-break: break-word;
|
| 89 |
overflow-wrap: break-word;
|
src/frontend/loader.html
CHANGED
|
@@ -272,7 +272,7 @@
|
|
| 272 |
</div>
|
| 273 |
</div>
|
| 274 |
|
| 275 |
-
<p class="system
|
| 276 |
style="word-wrap:break-word;">
|
| 277 |
Demo only!
|
| 278 |
<a href="https://umint-openwebui.hf.space"
|
|
|
|
| 272 |
</div>
|
| 273 |
</div>
|
| 274 |
|
| 275 |
+
<p class="system"
|
| 276 |
style="word-wrap:break-word;">
|
| 277 |
Demo only!
|
| 278 |
<a href="https://umint-openwebui.hf.space"
|