mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
fix(dual-screen): give the bottom-screen Steam chat room to lay out
At the panel's own scale Steam's desktop chat got about 600x300 CSS pixels and its friends list collapsed under the group chats bar. The page is now laid out wider and drawn at 0.75 of the panel's scale, Steam's site header is hidden, and while the chat is open Close, mic and volume share one row so the chat gets the rest of the screen.
This commit is contained in:
1 parent
30e009a651
commit
42df3a78b3
2 files changed
+42
-12
No files matched your search
@@ -16,6 +16,18 @@ class BottomChatPageTest {
|
||||
assertFalse(steamChatAllows(null))
|
||||
}
|
||||
|
||||
@Test fun chatFitScriptUsesADotDecimalInEveryLocale() {
|
||||
val before = java.util.Locale.getDefault()
|
||||
try {
|
||||
java.util.Locale.setDefault(java.util.Locale.GERMANY)
|
||||
val js = steamChatFitScript(821, 0.75f)
|
||||
assertTrue(js.contains("m.content='width=821, initial-scale=0.75'"))
|
||||
assertTrue(js.contains("#global_header{display:none!important}"))
|
||||
} finally {
|
||||
java.util.Locale.setDefault(before)
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun desktopAgentKeepsTheWebViewChromeVersion() {
|
||||
val ua = desktopUserAgent("Mozilla/5.0 (Linux; Android 15; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/141.0.7390.122 Mobile Safari/537.36")
|
||||
assertEquals("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.122 Safari/537.36", ua)
|
||||
|
||||
Reference in new issue
Block a user