fix app ver and mode centering
This commit is contained in:
parent
5667309c66
commit
102af46969
2 changed files with 10 additions and 10 deletions
|
|
@ -172,7 +172,7 @@ gapp.broker.subscribe("mesh.log", log.emit);
|
||||||
function ui_build() {
|
function ui_build() {
|
||||||
// set app version
|
// set app version
|
||||||
$h('app-name', "Mesh:Tool");
|
$h('app-name', "Mesh:Tool");
|
||||||
$h('app-vers', gapp.version);
|
$h('app-vers', 'beta' /* gapp.version */);
|
||||||
|
|
||||||
// add a help button
|
// add a help button
|
||||||
h.bind($('top-right'), [
|
h.bind($('top-right'), [
|
||||||
|
|
@ -238,6 +238,7 @@ function ui_build() {
|
||||||
h.button({ _: 'bounds', onclick() { selection.boundsBox({ toggle: true }) } }),
|
h.button({ _: 'bounds', onclick() { selection.boundsBox({ toggle: true }) } }),
|
||||||
h.button({ _: 'gridlines', onclick() { api.grid() } }),
|
h.button({ _: 'gridlines', onclick() { api.grid() } }),
|
||||||
h.button({ _: 'wireframe', onclick() { api.wireframe() } }),
|
h.button({ _: 'wireframe', onclick() { api.wireframe() } }),
|
||||||
|
h.button({ _: 'normals', onclick() { api.normals() } }),
|
||||||
h.div({ class: "vsep" }),
|
h.div({ class: "vsep" }),
|
||||||
h.button({ _: 'duplicate', onclick: tool.duplicate }),
|
h.button({ _: 'duplicate', onclick: tool.duplicate }),
|
||||||
h.button({ _: 'merge', onclick: tool.merge }),
|
h.button({ _: 'merge', onclick: tool.merge }),
|
||||||
|
|
|
||||||
|
|
@ -59,16 +59,15 @@ body, div {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
font-family: sans-serif;
|
font-family: monospace;
|
||||||
margin-top: 5px;
|
transform: translate(5px,-50%);
|
||||||
padding: 5px;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
left: 50%;
|
|
||||||
top: 100%;
|
|
||||||
color: var(--fg-gray);
|
color: var(--fg-gray);
|
||||||
|
margin: 0;
|
||||||
|
padding: 2px 3px 2px 3px;
|
||||||
|
border: 1px solid rgba(0,0,0,0.25);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: 1px solid #ddd;
|
left: 100%;
|
||||||
background-color: white;
|
top: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#app-body {
|
#app-body {
|
||||||
|
|
@ -291,7 +290,7 @@ button:hover {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border: 1px solid rgba(0,0,0,0.5);
|
border: 1px solid rgba(0,0,0,0.5);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
margin: 3px;
|
margin-top: 3px;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue