mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
fix(input): fit the layout editor panel and binder on tall phones, and render previews at 21:9
This commit is contained in:
1 parent
431f253db1
commit
26dcce168a
40 files changed
+124
-41
No files matched your search
@@ -30,6 +30,10 @@ internal class PreviewRenderTest(private val case: PreviewCase) {
|
||||
@Test @Config(qualifiers = "w540dp-h960dp-port-xhdpi")
|
||||
fun portrait() = render("portrait")
|
||||
|
||||
/** A 21:9 phone held upright, where side panels and two-column rows run out of width first. */
|
||||
@Test @Config(qualifiers = "w411dp-h960dp-port-xhdpi")
|
||||
fun tall() = render("tall")
|
||||
|
||||
private fun render(size: String) {
|
||||
compose.mainClock.autoAdvance = false
|
||||
compose.setContent { case.content() }
|
||||
|
||||
Reference in new issue
Block a user