Sidebar Banner is hidden in mobile. #1043
Answered
by
fuma-nama
techwithanirudh
asked this question in
Q&A
-
I’m using the sidebar banner to display an “Ask AI” button with a Trigger component. It displays correctly on the desktop sidebar, it's not visible in the mobile sidebar. sidebar: {
banner: (
<Trigger
className={cn(
buttonVariants({
variant: "secondary",
className:
"shadow-none gap-2 border bg-fd-secondary/50 p-1.5 text-sm text-fd-muted-foreground justify-start hover:bg-fd-accent hover:text-fd-accent-foreground rounded-lg max-md:hidden",
})
)}
data-ai-search-full
>
<MessageCircle className="ms-1" />
Ask AI
</Trigger>
),
}, |
Beta Was this translation helpful? Give feedback.
Answered by
fuma-nama
Nov 10, 2024
Replies: 1 comment 1 reply
-
You put |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
techwithanirudh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You put
max-md:hidden
to your class name