Skip to content

Commit

Permalink
fix(theme): 🐛 Force display block on lite badge
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 7, 2022
1 parent 7b66494 commit 4c65b4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/bot-engine/src/assets/importantStyles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.lite-badge {
display: block !important;
}
5 changes: 4 additions & 1 deletion packages/bot-engine/src/components/TypebotViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import style from '../assets/style.css'
//@ts-ignore
import phoneNumberInputStyle from 'react-phone-number-input/style.css'
//@ts-ignore
import importantStyles from '../assets/importantStyles.css'
//@ts-ignore
import phoneSyle from '../assets/phone.css'
import { ConversationContainer } from './ConversationContainer'
import { AnswersContext } from '../contexts/AnswersContext'
Expand Down Expand Up @@ -67,6 +69,7 @@ export const TypebotViewer = ({
{phoneSyle}
{style}
{typebot.theme?.customCss}
{importantStyles}
</style>
}
name="Typebot viewer"
Expand Down Expand Up @@ -107,7 +110,7 @@ export const TypebotViewer = ({
href={'https://www.typebot.io/?utm_source=litebadge'}
target="_blank"
rel="noopener noreferrer"
className="fixed py-1 px-2 bg-white z-50 rounded shadow-md"
className="fixed py-1 px-2 bg-white z-50 rounded shadow-md lite-badge"
style={{ bottom: '20px' }}
>
Made with <span className="text-blue-500">Typebot</span>.
Expand Down

2 comments on commit 4c65b4c

@vercel
Copy link

@vercel vercel bot commented on 4c65b4c Mar 7, 2022

@vercel
Copy link

@vercel vercel bot commented on 4c65b4c Mar 7, 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

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

Please sign in to comment.