feat: ♿️ Hide steps sidebar scrollbar
This commit is contained in:
@ -2,6 +2,17 @@
|
|||||||
cursor: grabbing !important;
|
cursor: grabbing !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hide scrollbar for Chrome, Safari and Opera */
|
||||||
|
.hide-scrollbar::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide scrollbar for IE, Edge and Firefox */
|
||||||
|
.hide-scrollbar {
|
||||||
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
|
scrollbar-width: none; /* Firefox */
|
||||||
|
}
|
||||||
|
|
||||||
/* * {
|
/* * {
|
||||||
outline: 1px solid #f00 !important;
|
outline: 1px solid #f00 !important;
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
|
@ -97,6 +97,7 @@ export const StepsSideBar = () => {
|
|||||||
spacing={6}
|
spacing={6}
|
||||||
userSelect="none"
|
userSelect="none"
|
||||||
overflowY="scroll"
|
overflowY="scroll"
|
||||||
|
className="hide-scrollbar"
|
||||||
>
|
>
|
||||||
<Flex justifyContent="flex-end">
|
<Flex justifyContent="flex-end">
|
||||||
<Tooltip label={isLocked ? 'Unlock sidebar' : 'Lock sidebar'}>
|
<Tooltip label={isLocked ? 'Unlock sidebar' : 'Lock sidebar'}>
|
||||||
|
@ -28,7 +28,7 @@ export const useResults = ({
|
|||||||
typebotId: string
|
typebotId: string
|
||||||
onError: (error: Error) => void
|
onError: (error: Error) => void
|
||||||
}) => {
|
}) => {
|
||||||
const { data, error, mutate, setSize, size } = useSWRInfinite<
|
const { data, error, mutate, setSize, size, isValidating } = useSWRInfinite<
|
||||||
{ results: ResultWithAnswers[] },
|
{ results: ResultWithAnswers[] },
|
||||||
Error
|
Error
|
||||||
>(
|
>(
|
||||||
@ -50,10 +50,11 @@ export const useResults = ({
|
|||||||
setSize,
|
setSize,
|
||||||
size,
|
size,
|
||||||
hasMore:
|
hasMore:
|
||||||
data &&
|
isValidating ||
|
||||||
|
(data &&
|
||||||
data.length > 0 &&
|
data.length > 0 &&
|
||||||
data[data.length - 1].results.length > 0 &&
|
data[data.length - 1].results.length > 0 &&
|
||||||
data.length === paginationLimit,
|
data.length === paginationLimit),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user