Skip to content

Commit

Permalink
fix: correct spacing between sliders (sct#3225)
Browse files Browse the repository at this point in the history
  • Loading branch information
sct authored and Mike Kao committed Jan 3, 2024
1 parent d047d98 commit f95bb82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Discover/DiscoverSliderEdit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ const DiscoverSliderEdit = ({
/>
</div>
) : (
<div className={`p-4 ${!slider.enabled ? 'opacity-50' : ''}`}>
<div className={`-mt-6 p-4 ${!slider.enabled ? 'opacity-50' : ''}`}>
{children}
</div>
)}
Expand Down
4 changes: 1 addition & 3 deletions src/components/Discover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,7 @@ const Discover = () => {
}

return (
<div key={`discover-slider-${slider.id}`} className="mt-6">
{sliderComponent}
</div>
<div key={`discover-slider-${slider.id}`}>{sliderComponent}</div>
);
})}
</>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}

.slider-header {
@apply relative mb-4 flex;
@apply relative mt-6 mb-4 flex;
}

.slider-title {
Expand Down

0 comments on commit f95bb82

Please sign in to comment.