mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
fix(web): zoom compensation and mobile chat scroll fixes
- WebClient: divide fixed offsets and viewport heights by --ui-scale on large displays; fix member context menu position - WebClient: use 100dvh/100svh with fallbacks on mobile; constrain workspace-content height so message list scrolls properly - AdminView: keep html/body at real viewport while zoomed admin shell divides height by scale - DemoView: divide poke banner offsets by --ui-scale to keep intended margin - package-lock: drop stale peer flags
This commit is contained in:
1 parent
713716dacc
commit
5a3eebecbd
4 files changed
+33
-10
No files matched your search
@@ -1382,8 +1382,8 @@ async function parseResponse(response: Response) { const value = await response.
|
||||
stays readable. Compensate viewport heights for that zoom; otherwise a
|
||||
2K viewport becomes a 1920px-tall admin shell and clips its lower cards. */
|
||||
@media(min-width:851px){
|
||||
:global(html),:global(body),:global(#app){height:calc(100dvh / var(--ui-scale));max-height:calc(100dvh / var(--ui-scale))}
|
||||
.admin-root,.admin-shell,.admin-sidebar{height:calc(100dvh / var(--ui-scale));min-height:calc(100dvh / var(--ui-scale));max-height:calc(100dvh / var(--ui-scale))}
|
||||
:global(html),:global(body){height:100dvh;max-height:100dvh}
|
||||
:global(#app),.admin-root,.admin-shell,.admin-sidebar{height:calc(100dvh / var(--ui-scale));min-height:calc(100dvh / var(--ui-scale));max-height:calc(100dvh / var(--ui-scale))}
|
||||
.admin-main{height:100%;min-height:0}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user