Skip to content

Commit 5392b30

Browse files
committed
Get rid of arrows on slides with one picture
1 parent 7334bf6 commit 5392b30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Slideshow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function Slideshow({
102102
loading={index === curSlide ? "eager" : "lazy"}
103103
/>
104104

105-
{!isBackground && (
105+
{!isBackground && slides.length > 1 && (
106106
<div
107107
onClick={toPrev}
108108
className={
@@ -113,7 +113,7 @@ export default function Slideshow({
113113
&lt;
114114
</div>
115115
)}
116-
{!isBackground && (
116+
{!isBackground && slides.length > 1 && (
117117
<div
118118
onClick={toNext}
119119
className={

0 commit comments

Comments
 (0)