add poprow option for compact poppers
This commit is contained in:
parent
9c46a73ead
commit
d08185537b
3 changed files with 10 additions and 1 deletions
|
|
@ -1200,7 +1200,7 @@ var gs_kiri_init = exports;
|
||||||
gcodePre: UC.newText(LANG.dv_head_s, {title:LANG.dv_head_l, modes:GCODE, size:14, height:3}),
|
gcodePre: UC.newText(LANG.dv_head_s, {title:LANG.dv_head_l, modes:GCODE, size:14, height:3}),
|
||||||
gcodePost: UC.newText(LANG.dv_foot_s, {title:LANG.dv_foot_l, modes:GCODE, size:14, height:3}),
|
gcodePost: UC.newText(LANG.dv_foot_s, {title:LANG.dv_foot_l, modes:GCODE, size:14, height:3}),
|
||||||
|
|
||||||
mode: UC.newGroup(LANG.mo_menu, assets, {region:"left"}),
|
mode: UC.newGroup(LANG.mo_menu, assets, {region:"left", poprow:false}),
|
||||||
modeTable: UC.newTableRow([
|
modeTable: UC.newTableRow([
|
||||||
[
|
[
|
||||||
UI.modeFDM =
|
UI.modeFDM =
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,7 @@ var gs_moto_ui = exports;
|
||||||
let pop = DOC.createElement('div');
|
let pop = DOC.createElement('div');
|
||||||
pop.classList.add('popper');
|
pop.classList.add('popper');
|
||||||
if (lastRegion) pop.classList.add(lastRegion);
|
if (lastRegion) pop.classList.add(lastRegion);
|
||||||
|
if (opt.poprow) pop.classList.add('poprow')
|
||||||
row.appendChild(pop);
|
row.appendChild(pop);
|
||||||
addTo = pop;
|
addTo = pop;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,14 @@ input[type=range]::-moz-focus-outer {
|
||||||
.popper.right {
|
.popper.right {
|
||||||
right: 105%;
|
right: 105%;
|
||||||
}
|
}
|
||||||
|
.popper svg {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
.poprow > div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
.dialog {
|
.dialog {
|
||||||
display: none;
|
display: none;
|
||||||
color: black;
|
color: black;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue