0.1.3 - voice chat settings
- added voice chat settings - fixed gestures on popups
This commit is contained in:
parent
61e2911706
commit
cb067f3785
71 changed files with 2069 additions and 77 deletions
|
|
@ -1715,6 +1715,230 @@ input:checked + .toggle-slider:before {
|
|||
outline: none;
|
||||
}
|
||||
|
||||
/* In-call Voice Device Settings Popup */
|
||||
#voice-device-settings {
|
||||
position: fixed;
|
||||
/* left/top are set from JS (centered, viewport-clamped) so the opening
|
||||
animation cannot shift the popup and the header can drag it directly */
|
||||
width: min(24rem, calc(100vw - 2rem));
|
||||
max-height: calc(100vh - 3rem);
|
||||
background: var(--main-bg-color);
|
||||
border: var(--border-width) solid var(--light-border-color);
|
||||
border-radius: 0.9rem;
|
||||
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
|
||||
z-index: 10020;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: scale(0.92);
|
||||
transition:
|
||||
opacity 0.15s ease,
|
||||
transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
}
|
||||
#voice-device-settings.show {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: scale(1);
|
||||
}
|
||||
#vds-header {
|
||||
height: 2.8rem;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 0.6rem 0 0.9375rem;
|
||||
font-weight: bold;
|
||||
font-size: 0.95rem;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border-bottom: var(--border-width) solid var(--light-border-color);
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
}
|
||||
#vds-header:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
#vds-header span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
#vds-header svg {
|
||||
pointer-events: none !important;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
#vds-close {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
flex-shrink: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--darker-text-color);
|
||||
border-radius: 0.6rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
#vds-close:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: var(--text-color);
|
||||
}
|
||||
#vds-body {
|
||||
padding: 0.4rem 0.7rem 0.8rem;
|
||||
overflow-y: auto;
|
||||
touch-action: pan-y;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.15rem;
|
||||
}
|
||||
.vds-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
padding: 0.3rem 0.1rem;
|
||||
}
|
||||
.vds-row > label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--darker-text-color);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.vds-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.5rem;
|
||||
padding: 0.3rem 0.1rem;
|
||||
}
|
||||
.vds-cell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
min-width: 0;
|
||||
}
|
||||
.vds-cell > label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--darker-text-color);
|
||||
}
|
||||
#voice-device-settings .custom-select {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 2.3rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* Floating option layer for the settings selects - lives on <body>, so it can
|
||||
escape the popup bounds and is unaffected by the popup transform/scrolling.
|
||||
Explicit solid background: never translucent over call content. */
|
||||
.custom-select-options.vds-floating {
|
||||
position: fixed;
|
||||
display: block;
|
||||
width: auto;
|
||||
margin: 0;
|
||||
background-color: var(--main-bg-color);
|
||||
z-index: 10040;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transform: translateY(-0.4rem);
|
||||
transition:
|
||||
opacity 0.15s ease,
|
||||
transform 0.15s ease,
|
||||
visibility 0.15s;
|
||||
}
|
||||
.custom-select-options.vds-floating.vds-open {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
}
|
||||
.vds-sens-meter {
|
||||
position: relative;
|
||||
height: 1.9rem;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border-radius: 0.55rem;
|
||||
overflow: hidden;
|
||||
border: var(--border-width) solid var(--light-border-color);
|
||||
}
|
||||
.vds-sens-fill {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
transition: width 0.05s linear, background-color 0.2s;
|
||||
pointer-events: none;
|
||||
}
|
||||
.vds-sens-mark {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 2px;
|
||||
margin-left: -1px;
|
||||
background: rgba(255, 255, 255, 0.65);
|
||||
border-radius: 1px;
|
||||
pointer-events: none;
|
||||
}
|
||||
/* Settings button keeps its hover look while the settings popup is open */
|
||||
#voice-btn-settings.active {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
#vds-sens-slider {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
background: transparent;
|
||||
outline: none;
|
||||
border: 0;
|
||||
border-radius: 0.55rem;
|
||||
/* pan-y on the popup body would eat horizontal touch drags */
|
||||
touch-action: none;
|
||||
z-index: 2;
|
||||
cursor: ew-resize;
|
||||
}
|
||||
/* The app-wide `input:active` press effect must not shrink this slider. */
|
||||
#vds-sens-slider:active,
|
||||
#vds-sens-slider.is-pressed {
|
||||
transform: none !important;
|
||||
}
|
||||
#vds-sens-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 0.25rem;
|
||||
height: 100%;
|
||||
background: var(--text-color);
|
||||
border-radius: 0.125rem;
|
||||
box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
#vds-sens-slider::-webkit-slider-thumb:hover,
|
||||
#vds-sens-slider::-webkit-slider-thumb:active {
|
||||
transform: none !important;
|
||||
}
|
||||
#vds-sens-slider::-moz-range-thumb {
|
||||
width: 0.25rem;
|
||||
height: 100%;
|
||||
background: var(--text-color);
|
||||
border: none;
|
||||
border-radius: 0.125rem;
|
||||
}
|
||||
#vds-sens-slider::-moz-range-thumb:hover,
|
||||
#vds-sens-slider::-moz-range-thumb:active {
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
@media (max-width: 55rem) {
|
||||
#voice-call-popup {
|
||||
width: 16rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue