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
@@ -79,12 +79,6 @@ const Carousel = ({
|
||||
setCurrentSlide((prev) => (prev + 1) % total);
|
||||
}, [total, setDirection]);
|
||||
|
||||
const previous = useCallback(() => {
|
||||
if (total < 2) return;
|
||||
setDirection("left");
|
||||
setCurrentSlide((prev) => (prev - 1 + total) % total);
|
||||
}, [total, setDirection]);
|
||||
|
||||
// Autoplay; pauses while the pointer is over the hero.
|
||||
useEffect(() => {
|
||||
if (isPaused || total < 2) return;
|
||||
@@ -110,24 +104,14 @@ const Carousel = ({
|
||||
<MemoizedCarouselSlide key={currentItem.Id} item={currentItem} />
|
||||
|
||||
{total > 1 && (
|
||||
<>
|
||||
<button
|
||||
type="button"
|
||||
className="cinema-arrow left"
|
||||
onClick={previous}
|
||||
aria-label="Previous"
|
||||
>
|
||||
<span className="material-symbols-rounded">chevron_left</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="cinema-arrow right"
|
||||
onClick={next}
|
||||
aria-label="Next"
|
||||
>
|
||||
<span className="material-symbols-rounded">chevron_right</span>
|
||||
</button>
|
||||
</>
|
||||
<button
|
||||
type="button"
|
||||
className="cinema-arrow right"
|
||||
onClick={next}
|
||||
aria-label="Next"
|
||||
>
|
||||
<span className="material-symbols-rounded">chevron_right</span>
|
||||
</button>
|
||||
)}
|
||||
|
||||
<div className="cinema-trending">
|
||||
|
||||
Reference in new issue
Block a user