mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-21 04:59:53 +02:00
now playing screen update further
This commit is contained in:
@@ -10,9 +10,9 @@ const BASELINES = [
|
||||
[320, 568, true, 296, 96, 204, 58],
|
||||
[360, 640, false, 328, 206, 214, 58],
|
||||
[360, 640, true, 328, 96, 214, 58],
|
||||
[393, 852, false, 361, 361, 361, 76],
|
||||
[393, 852, false, 361, 336, 361, 76],
|
||||
[393, 852, true, 361, 234, 361, 76],
|
||||
[412, 915, false, 380, 380, 380, 82],
|
||||
[412, 915, false, 380, 336, 380, 82],
|
||||
[412, 915, true, 380, 248, 380, 82],
|
||||
[600, 840, false, 520, 394, 394, 58],
|
||||
[600, 840, true, 520, 262, 394, 58],
|
||||
@@ -47,6 +47,17 @@ test('keeps the lower-content anchor stable when the analyzer toggles', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('caps visualizer-off artwork on roomy phones without shrinking the media stage', () => {
|
||||
for (const [width, height] of [
|
||||
[393, 852],
|
||||
[412, 915],
|
||||
]) {
|
||||
const hidden = getNowPlayingLayout(width, height, false);
|
||||
assert.equal(hidden.artSize, 336);
|
||||
assert.ok(hidden.mediaStackHeight > hidden.artSize);
|
||||
}
|
||||
});
|
||||
|
||||
test('adds the companion only to roomy tablet canvases', () => {
|
||||
for (const [width, height] of [
|
||||
[320, 568],
|
||||
|
||||
Reference in New Issue
Block a user