some changes
This commit is contained in:
@@ -109,7 +109,7 @@ function SwipeableTabs({
|
||||
);
|
||||
|
||||
return (
|
||||
<Box>
|
||||
<Box style={{ touchAction: "pan-y" }}>
|
||||
<Box
|
||||
ref={setRootRef}
|
||||
pos="sticky"
|
||||
@@ -137,7 +137,7 @@ function SwipeableTabs({
|
||||
onClick={() => changeTab(index)}
|
||||
style={{
|
||||
flex: 1,
|
||||
padding: "var(--mantine-spacing-sm) var(--mantine-spacing-md)",
|
||||
padding: "var(--mantine-spacing-sm) var(--mantine-spacing-xs)",
|
||||
textAlign: "center",
|
||||
color:
|
||||
activeTab === index
|
||||
@@ -155,7 +155,7 @@ function SwipeableTabs({
|
||||
component="span"
|
||||
style={{
|
||||
display: "inline-block",
|
||||
paddingInline: "1rem",
|
||||
paddingInline: "0.5rem",
|
||||
paddingBottom: "0.25rem",
|
||||
}}
|
||||
ref={setControlRef(index)}
|
||||
@@ -176,6 +176,7 @@ function SwipeableTabs({
|
||||
overflow: "hidden",
|
||||
height: carouselHeight === "auto" ? "auto" : `${carouselHeight}px`,
|
||||
transition: "height 300ms ease",
|
||||
touchAction: "pan-y",
|
||||
}}
|
||||
>
|
||||
{tabs.map((tab, index) => (
|
||||
|
||||
Reference in New Issue
Block a user