mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
More size for Product View
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
.root {
|
||||
@apply relative w-full h-full;
|
||||
overflow-y: hidden;
|
||||
|
||||
& > div {
|
||||
overflow: visible !important;
|
||||
}
|
||||
}
|
||||
|
||||
.rootPanel {
|
||||
@apply absolute flex flex-row inset-0 z-20 overflow-hidden;
|
||||
@apply absolute flex flex-row inset-0 z-20 m-20;
|
||||
}
|
||||
|
||||
.leftPanel {
|
||||
|
@@ -19,13 +19,18 @@ const ProductSlider: FC<Props> = ({ children }) => {
|
||||
|
||||
return (
|
||||
<div className={s.root}>
|
||||
<SwipeableViews
|
||||
index={idx}
|
||||
onChangeIndex={setIdx}
|
||||
containerStyle={{ overflow: 'visible' }}
|
||||
slideStyle={{ overflow: 'visible' }}
|
||||
>
|
||||
{children}
|
||||
</SwipeableViews>
|
||||
<div className={s.rootPanel}>
|
||||
<div className={s.leftPanel} onClick={goBack}></div>
|
||||
<div className={s.rightPanel} onClick={goNext}></div>
|
||||
</div>
|
||||
<SwipeableViews index={idx} onChangeIndex={setIdx}>
|
||||
{children}
|
||||
</SwipeableViews>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user