feat: add toggle for secret coordinates and dimension selection in town editor

This commit is contained in:
zhangyuheng
2026-03-17 00:39:01 +08:00
parent 4dda002f76
commit 802d1a6141
4 changed files with 154 additions and 23 deletions

View File

@@ -1210,6 +1210,61 @@
color: var(--text-secondary);
}
/* Toggle Switch */
.town-editor-modal-content .toggle-label {
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 600;
font-size: 14px;
color: var(--text-primary);
cursor: pointer;
}
.toggle-switch {
position: relative;
width: 44px;
height: 24px;
flex-shrink: 0;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.toggle-slider {
position: absolute;
inset: 0;
background: #ccc;
border-radius: 24px;
transition: 0.25s;
cursor: pointer;
}
.toggle-slider::before {
content: "";
position: absolute;
width: 18px;
height: 18px;
left: 3px;
bottom: 3px;
background: #fff;
border-radius: 50%;
transition: 0.25s;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
background: var(--accent-color, #0071e3);
}
.toggle-switch input:checked + .toggle-slider::before {
transform: translateX(20px);
}
/* Tags Input */
.town-editor-modal-content .tags-input-wrapper {
display: flex;