Skip to content

Commit

Permalink
feat: ♿️ Hide steps sidebar scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Feb 28, 2022
1 parent 33497b8 commit 0df719d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
11 changes: 11 additions & 0 deletions apps/builder/assets/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
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;
opacity: 1 !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const StepsSideBar = () => {
spacing={6}
userSelect="none"
overflowY="scroll"
className="hide-scrollbar"
>
<Flex justifyContent="flex-end">
<Tooltip label={isLocked ? 'Unlock sidebar' : 'Lock sidebar'}>
Expand Down
11 changes: 6 additions & 5 deletions apps/builder/services/typebots/results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const useResults = ({
typebotId: string
onError: (error: Error) => void
}) => {
const { data, error, mutate, setSize, size } = useSWRInfinite<
const { data, error, mutate, setSize, size, isValidating } = useSWRInfinite<
{ results: ResultWithAnswers[] },
Error
>(
Expand All @@ -50,10 +50,11 @@ export const useResults = ({
setSize,
size,
hasMore:
data &&
data.length > 0 &&
data[data.length - 1].results.length > 0 &&
data.length === paginationLimit,
isValidating ||
(data &&
data.length > 0 &&
data[data.length - 1].results.length > 0 &&
data.length === paginationLimit),
}
}

Expand Down

2 comments on commit 0df719d

@vercel
Copy link

@vercel vercel bot commented on 0df719d Feb 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 0df719d Feb 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.