From 4ff07e9ea93033766957c665107ebb046b0209c7 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Mon, 20 May 2024 13:40:44 -0400 Subject: [PATCH] fix mesh tools placement --- src/kiri/init.js | 6 +-- web/kiri/index.css | 7 +-- web/kiri/index.html | 127 ++++++++++++++++++++++---------------------- 3 files changed, 71 insertions(+), 69 deletions(-) diff --git a/src/kiri/init.js b/src/kiri/init.js index 7664619d..9b979f8d 100644 --- a/src/kiri/init.js +++ b/src/kiri/init.js @@ -2893,9 +2893,9 @@ gapp.register("kiri.init", [], (root, exports) => { for (let tt of [...document.getElementsByClassName('closer')]) { let tid = tt.getAttribute('target'); let target = tid ? $(tid) : parentWithClass(tt, 'movable'); - target.style.display = 'none'; + target.classList.add('hide'); let close = tt.onmousedown = (ev) => { - target.style.display = 'none'; + target.classList.add('hide'); if (ev) { ev.preventDefault(); ev.stopPropagation(); @@ -2958,7 +2958,7 @@ gapp.register("kiri.init", [], (root, exports) => { tictac = $(`ft-${tictac}`); } let mover = parentWithClass(tictac.control, 'movable'); - mover.style.display = 'flex'; + mover.classList.remove('hide'); tictac.control.onclick(); }); $('tool-rotate').onclick = event.bind("tool.show", "rotate"); diff --git a/web/kiri/index.css b/web/kiri/index.css index 5619ec48..c0ea61ce 100644 --- a/web/kiri/index.css +++ b/web/kiri/index.css @@ -577,7 +577,7 @@ th, tr, td, label { #top-sep { display: none; } -#top-sep, #mid-sep { +#top-sep { z-index: 14; height: 1px; background-image: var(--gradbar); @@ -645,8 +645,9 @@ th, tr, td, label { #float-tools { position: absolute; margin: 0 0 0 5px; - top: 0; - left: 100%; + top: 35px; + left: 50%; + transform: translateX(-50%); z-index: 16; } #float-tools button { diff --git a/web/kiri/index.html b/web/kiri/index.html index c76b6d9c..decbe766 100644 --- a/web/kiri/index.html +++ b/web/kiri/index.html @@ -228,7 +228,69 @@ -
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ +
+ +
+ +
+ +
+ +
+ +
+ + +
+
+
+
+ + [0] + + - + + - +
+ + + +
+
+
+ +
+
loading
@@ -241,68 +303,7 @@
-
-
- -
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
- -
- -
- -
- -
- -
- -
- - -
-
-
-
- - [0] - - - - - - -
- - - -
-
-
- -
+