Commit cd13fb72 authored by Cantuerk's avatar Cantuerk
Browse files

Merge branch '21caog1bif-master-patch-10683' into 'master'

Update public/ar_main.js, public/style.css

See merge request !188
1 merge request!188Update public/ar_main.js, public/style.css
Pipeline #10940 passed with stage
in 20 seconds
Showing with 22 additions and 29 deletions
+22 -29
......@@ -356,31 +356,26 @@ function openMoveMenu() {
const dynamicMenu = document.getElementById("dynamic-menu");
dynamicMenu.style.display = "flex";
dynamicMenu.innerHTML = `
<div id="move-menu">
<h3>Position anpassen</h3>
<label>
Verschiebungsgröße: <span id="move-delta-display">${moveDelta.toFixed(2)}</span>
<input type="range" min="0.01" max="1.0" step="0.01" value="${moveDelta}" onchange="updateMoveDelta(this.value)">
</label>
<div id="button-controls">
<button class="control-button" id="up" onclick="moveModelDynamic('z', -moveDelta)">
<div style="display: flex; gap: 4px;">
<div class="control-button" id="left" onclick="moveModelDynamic('x', -moveDelta)">
<img src="assets/icons/left-arrow.png" alt="Up" />
</div>
<div class="control-button" id="right" onclick="moveModelDynamic('x', moveDelta)">
<img src="assets/icons/right-arrow.png" alt="Up" />
</div>
<div class="control-button" id="up" onclick="moveModelDynamic('z', -moveDelta)">
<img src="assets/icons/up-arrow.png" alt="Up" />
</button>
<div class="middle-row">
<button class="control-button" id="left" onclick="moveModelDynamic('x', -moveDelta)">
<img src="assets/icons/left-arrow.png" alt="Left" />
</button>
<div class="spacer"></div>
<button class="control-button" id="right" onclick="moveModelDynamic('x', moveDelta)">
<img src="assets/icons/right-arrow.png" alt="Right" />
</button>
</div>
<button class="control-button" id="down" onclick="moveModelDynamic('z', moveDelta)">
<img src="assets/icons/down-arrow.png" alt="Down" />
</button>
<div class="control-button" id="down" onclick="moveModelDynamic('z', moveDelta)">
<img src="assets/icons/down-arrow.png" alt="Up" />
</div>
<button onclick="closeDynamicMenu()">Zurück</button>
</div>
<button onclick="closeDynamicMenu()">Zurück</button>
`;
}
......
......@@ -253,7 +253,6 @@ button:active {
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
}
#button-controls .middle-row {
......@@ -274,9 +273,8 @@ button:active {
}
#button-controls .control-button img {
width: 100%;
height: 100%;
object-fit: contain;
width: 40px;
height: 40px;
}
#button-controls .control-button:active {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment