diff --git a/src/kiri-mode/cam/client.js b/src/kiri-mode/cam/client.js index d4a554ae..55a58eca 100644 --- a/src/kiri-mode/cam/client.js +++ b/src/kiri-mode/cam/client.js @@ -1262,10 +1262,10 @@ function createPopOp(type, map) { function createTabBox(iw, ic, n) { const { track } = iw; const { stock, bounds, process } = API.conf.get(); - const { camTabsWidth, camTabsHeight, camTabsDepth, camTabsMidline } = process; + const { camTabsWidth, camTabsHeight, camTabsDepth, camTabsMidline, camZBottom } = process; const sz = stock.z || bounds.max.z; const zto = sz - iw.track.top; - const zp = sz - track.box.d + process.camZBottom - zto + (camTabsMidline ? 0 : camTabsHeight / 2); + const zp = (camZBottom ? camZBottom : sz - track.box.d - zto) + (camTabsMidline ? 0 : camTabsHeight / 2); ic.x += n.x * camTabsDepth / 2; // offset from part ic.z -= n.y * camTabsDepth / 2; // offset swap z,y ic.y = zp; // offset swap in world space y,z diff --git a/web/kiri/index.css b/web/kiri/index.css index 7c5c3fa0..93e84fcc 100644 --- a/web/kiri/index.css +++ b/web/kiri/index.css @@ -865,6 +865,12 @@ th, tr, td, label { background-color: rgba(255,255,255,0.75); white-space: nowrap; } +#oplist > div:hover, #op-add:hover { + background-color: rgba(255,255,255,0.9); +} +#oplist > div.editing { + background-color: rgba(190,230,190,0.85); +} #oplist .drag { background-color: var(--highlight) !important; } @@ -881,11 +887,8 @@ th, tr, td, label { font-size: 12px; color: rgba(0,0,0,0); } -#oplist > div.editing { - background-color: rgba(220,230,220,0.8); -} .dark #oplist div:hover .del { - color: #fff; + color: #777; } #oplist div:hover .del { color: #888;