2
0

Show scrollbar on searchable items

This commit is contained in:
Baptiste Arnaud
2023-11-15 15:27:53 +01:00
parent 1f19eb8763
commit 7cf64a1abb
8 changed files with 7 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.2.20",
"version": "0.2.21",
"description": "Javascript library to display typebots on your website",
"type": "module",
"main": "dist/index.js",

View File

@ -333,17 +333,6 @@ pre {
border-radius: var(--typebot-border-radius);
}
/* 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 */
}
.typebot-picture-button {
color: var(--typebot-button-color);
background-color: var(--typebot-button-bg-color);

View File

@ -52,7 +52,7 @@ export const Buttons = (props: Props) => {
class={
'flex flex-wrap justify-end gap-2' +
(props.options?.isSearchable
? ' overflow-y-scroll max-h-80 rounded-md hide-scrollbar'
? ' overflow-y-scroll max-h-80 rounded-md'
: '')
}
>

View File

@ -76,7 +76,7 @@ export const MultipleChoicesForm = (props: Props) => {
class={
'flex flex-wrap justify-end gap-2' +
(props.options?.isSearchable
? ' overflow-y-scroll max-h-80 rounded-md hide-scrollbar'
? ' overflow-y-scroll max-h-80 rounded-md'
: '')
}
>

View File

@ -97,7 +97,7 @@ export const MultiplePictureChoice = (props: Props) => {
class={
'flex flex-wrap justify-end gap-2' +
(props.options?.isSearchable
? ' overflow-y-scroll max-h-[464px] rounded-md hide-scrollbar'
? ' overflow-y-scroll max-h-[464px] rounded-md'
: '')
}
>

View File

@ -71,7 +71,7 @@ export const SinglePictureChoice = (props: Props) => {
class={
'gap-2 flex flex-wrap justify-end' +
(props.options?.isSearchable
? ' overflow-y-scroll max-h-[464px] rounded-md hide-scrollbar'
? ' overflow-y-scroll max-h-[464px] rounded-md'
: '')
}
>

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/nextjs",
"version": "0.2.20",
"version": "0.2.21",
"description": "Convenient library to display typebots on your Next.js website",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/react",
"version": "0.2.20",
"version": "0.2.21",
"description": "Convenient library to display typebots on your React app",
"main": "dist/index.js",
"types": "dist/index.d.ts",