diff --git a/resources/views/native/partials/live-stream-sheet.blade.php b/resources/views/native/partials/live-stream-sheet.blade.php index e5df3e04..d3dd87c2 100644 --- a/resources/views/native/partials/live-stream-sheet.blade.php +++ b/resources/views/native/partials/live-stream-sheet.blade.php @@ -2,12 +2,12 @@ The web's live stream sheet, which a tap on a live user's avatar opens (see OpensLiveStream): the stream's thumbnail in 16:9 with the LIVE badge in its corner, "{name} is live" and where, Watch now, then who it is with Open profile, which their own profile leaves out. The thumbnail isn't kept on the device, as it changes while they - stream. Nothing is drawn until the sheet opens. + stream. The sheet is as tall as what it shows, with or without Open profile. Nothing is drawn until it opens. --}} @php($streamer = $liveStreamer === null ? null : \App\Devnull\Data\User::fromArray($liveStreamer)) - + @if ($streamer?->live) - + @if ($streamer->live->thumbnailUrl) diff --git a/tests/Feature/Screens/LiveAvatarTest.php b/tests/Feature/Screens/LiveAvatarTest.php index 9ac474cd..b7a214eb 100644 --- a/tests/Feature/Screens/LiveAvatarTest.php +++ b/tests/Feature/Screens/LiveAvatarTest.php @@ -140,7 +140,7 @@ function profileRingColour(TestableComponent $screen): string $screen = $screen->press("openLiveStream('ada')"); - expect(nodeByRef($screen, 'live-stream-sheet')['props']['visible'])->toBeTrue() + expect(nodeByRef($screen, 'live-stream-sheet')['props'])->toMatchArray(['visible' => true, 'detents' => 'fit']) ->and(nodeByRef($screen, 'live-stream-thumbnail')['props']['src'])->toBe('https://static-cdn.jtvnw.net/previews-ttv/live_user_ada-1280x720.jpg'); $screen->assertSee('Ada is live')