ui: adding logo and spacing fixes
This commit is contained in:
parent
0b5a5aeadc
commit
7cbaabb38f
2 changed files with 28 additions and 13 deletions
|
@ -20,15 +20,17 @@
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 900px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
margin: 3px;
|
margin: 3px auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
|
width: 100%;
|
||||||
|
align-items: center;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
|
@ -144,7 +146,11 @@
|
||||||
header {
|
header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: baseline;
|
align-items: center;
|
||||||
|
background: #1c2020;
|
||||||
|
color: #f2f2f2;
|
||||||
|
padding: 0.25em 0.5em;
|
||||||
|
border-bottom: 2px solid color(srgb 0.9999 0.5095 0.2057);
|
||||||
}
|
}
|
||||||
|
|
||||||
.header_controls {
|
.header_controls {
|
||||||
|
@ -157,6 +163,7 @@
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column {
|
.column {
|
||||||
|
@ -177,6 +184,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#chat {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
button{
|
||||||
|
padding: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.range_field {
|
.range_field {
|
||||||
border-bottom: 1px dashed;
|
border-bottom: 1px dashed;
|
||||||
padding-bottom: 0.5em;
|
padding-bottom: 0.5em;
|
||||||
|
@ -930,20 +945,20 @@
|
||||||
const popoverChildren = html`
|
const popoverChildren = html`
|
||||||
<div class="prob-set">
|
<div class="prob-set">
|
||||||
${probs.map((p, index) => {
|
${probs.map((p, index) => {
|
||||||
return html`
|
return html`
|
||||||
<div
|
<div
|
||||||
key=${index}
|
key=${index}
|
||||||
title=${`prob: ${p.prob}`}
|
title=${`prob: ${p.prob}`}
|
||||||
style=${{
|
style=${{
|
||||||
padding: '0.3em',
|
padding: '0.3em',
|
||||||
backgroundColor: p.tok_str === content ? probColor(p.prob) : 'transparent'
|
backgroundColor: p.tok_str === content ? probColor(p.prob) : 'transparent'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span>${p.tok_str}: </span>
|
<span>${p.tok_str}: </span>
|
||||||
<span>${Math.floor(p.prob * 100)}%</span>
|
<span>${Math.floor(p.prob * 100)}%</span>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
|
||||||
|
@ -1022,9 +1037,9 @@
|
||||||
ref=${popoverRef}
|
ref=${popoverRef}
|
||||||
class="popover-content"
|
class="popover-content"
|
||||||
style=${{
|
style=${{
|
||||||
top: position.value.top,
|
top: position.value.top,
|
||||||
left: position.value.left,
|
left: position.value.left,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
${props.popoverChildren}
|
${props.popoverChildren}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1099,7 +1114,7 @@
|
||||||
return html`
|
return html`
|
||||||
<div class="basecontainer mode-${session.value.type}">
|
<div class="basecontainer mode-${session.value.type}">
|
||||||
<header>
|
<header>
|
||||||
<h1>llama.cpp</h1>
|
<img src="/llama1-logo.png" alt="llama.cpp" height="40px" width="auto" />
|
||||||
<${ConfigForm} header/>
|
<${ConfigForm} header/>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
@ -1129,4 +1144,4 @@
|
||||||
<div id="portal"></div>
|
<div id="portal"></div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
BIN
examples/server/public/llama1-logo.png
Normal file
BIN
examples/server/public/llama1-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
Loading…
Add table
Add a link
Reference in a new issue