fix(home): flush top and side edges of the cinema frame
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
The home frame now reaches the top, left and right window edges, with the bottom inset kept. The macOS header clears the traffic lights, the left arrow no longer overlaps the copy, and the hero rail reserves space from the bar's real visibility instead of its lingering DOM node.
This commit is contained in:
1 parent
0f80d4db4e
commit
5aaa3435da
4 files changed
+39
-46
No files matched your search
@@ -161,6 +161,15 @@ const AudioPlayer = () => {
|
||||
if (display) setSelectedRemoteId(null);
|
||||
}, [display, item?.Id]);
|
||||
|
||||
// Layout hooks (home hero rail) reserve space for the bar. Use explicit
|
||||
// visibility rather than the DOM: during the exit animation the element is
|
||||
// still mounted but already off-screen.
|
||||
useEffect(() => {
|
||||
const visible = barVisible && location.pathname !== "/player/audio";
|
||||
document.body.classList.toggle("has-player-bar", visible);
|
||||
return () => document.body.classList.remove("has-player-bar");
|
||||
}, [barVisible, location.pathname]);
|
||||
|
||||
// Sync local audio element.
|
||||
useEffect(() => {
|
||||
if (display) {
|
||||
|
||||
Reference in new issue
Block a user