feat(earth): toolbar zoom improvements and toggle-cables

- Remove zoom slider, implement click/hold zoom behavior (+/- buttons)
- Add 10% step on click, 1% continuous on hold
- Add box-sizing/padding normalization to toolbar buttons
- Add toggle-cables functionality with visibility state
- Fix breathing effect: faster pulse (0.008), wider opacity range (0.2-1.0)
- Fix slider null error in updateZoomDisplay
- Set satellite default to hidden
This commit is contained in:
rayd1o
2026-03-21 02:26:41 +08:00
parent 96222b9e4c
commit 78bb639a83
7 changed files with 92 additions and 54 deletions

View File

@@ -43,7 +43,7 @@ body {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
gap: 6px;
background: rgba(10, 10, 30, 0.9);
padding: 8px 4px;
border-radius: 24px;
@@ -93,7 +93,9 @@ body {
justify-content: center;
transition: all 0.2s ease;
padding: 0;
margin: 0;
flex: 0 0 auto;
box-sizing: border-box;
}
#zoom-toolbar .zoom-btn:hover {
@@ -306,6 +308,9 @@ input[type="range"]::-webkit-slider-thumb {
align-items: center;
justify-content: center;
transition: all 0.2s ease;
box-sizing: border-box;
padding: 0;
margin: 0;
}
.toolbar-btn:hover {