-
-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add scrollable Community dropdown to display all content #3553
base: master
Are you sure you want to change the base?
Changes from 2 commits
2710835
a706c39
2fdfa1f
dff3ed6
9e0b413
58d41d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -14,12 +14,12 @@ interface FlyoutProps { | |||||
export default function Flyout({ items = [] }: FlyoutProps) { | ||||||
return ( | ||||||
<div | ||||||
className='absolute z-50 -ml-4 w-screen max-w-md pt-3 md:ml-12 md:-translate-x-1/2 lg:left-1/2 lg:max-w-3xl lg:-translate-x-1/2' | ||||||
data-testid='Flyout-main' | ||||||
className="absolute z-50 -ml-4 w-screen max-w-md pt-3 md:ml-12 md:-translate-x-1/2 lg:left-1/2 lg:max-w-3xl lg:-translate-x-1/2" | ||||||
data-testid="Flyout-main" | ||||||
> | ||||||
<div className='rounded-lg shadow-lg'> | ||||||
<div className='shadow-xs overflow-hidden rounded-lg'> | ||||||
<div className='relative z-20 grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8 lg:grid-cols-2'> | ||||||
<div className="rounded-lg shadow-lg"> | ||||||
<div className="shadow-xs overflow-hidden rounded-lg"> | ||||||
<div className="relative z-20 grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8 lg:grid-cols-2 max-h-96 min-h-40 overflow-y-auto scrollbar-thin scrollbar-thumb-white scrollbar-track-transparent"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Review scrollbar visibility and fix class ordering. Two concerns with the scrollbar implementation:
Consider these improvements:
- <div className="relative z-20 grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8 lg:grid-cols-2 max-h-96 min-h-40 overflow-y-auto scrollbar-thin scrollbar-thumb-white scrollbar-track-transparent">
+ <div className="relative z-20 grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8 lg:grid-cols-2 max-h-96 min-h-40 overflow-y-auto scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-transparent">
- <div className="relative z-20 grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8 lg:grid-cols-2 max-h-96 min-h-40 overflow-y-auto scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-transparent">
+ <div className="relative z-20 max-h-96 min-h-40 grid gap-6 bg-white px-5 py-6 overflow-y-auto scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-transparent sm:gap-8 sm:p-8 lg:grid-cols-2"> 📝 Committable suggestion
Suggested change
🧰 Tools🪛 eslint[error] 22-22: Replace (prettier/prettier) [error] 22-22: Unexpected usage of doublequote. (jsx-quotes) 🪛 GitHub Actions: PR testing - if Node project[warning] 22-22: Invalid Tailwind CSS classnames order [error] 22-22: Double quotes used instead of single quotes for JSX attributes |
||||||
<MenuBlocks items={items} /> | ||||||
</div> | ||||||
</div> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix quote style to match project conventions.
Replace double quotes with single quotes in JSX attributes to comply with project conventions and fix CI failures.
Apply this change across all JSX attributes:
📝 Committable suggestion
🧰 Tools
🪛 eslint
[error] 17-17: Replace
"absolute·z-50·-ml-4·w-screen·max-w-md·pt-3·md:ml-12·md:-translate-x-1/2·lg:left-1/2·lg:max-w-3xl·lg:-translate-x-1/2"
with'absolute·z-50·-ml-4·w-screen·max-w-md·pt-3·md:ml-12·md:-translate-x-1/2·lg:left-1/2·lg:max-w-3xl·lg:-translate-x-1/2'
(prettier/prettier)
[error] 17-17: Unexpected usage of doublequote.
(jsx-quotes)
[error] 18-18: Replace
"Flyout-main"
with'Flyout-main'
(prettier/prettier)
[error] 18-18: Unexpected usage of doublequote.
(jsx-quotes)
[error] 20-20: Replace
"rounded-lg·shadow-lg"
with'rounded-lg·shadow-lg'
(prettier/prettier)
[error] 20-20: Unexpected usage of doublequote.
(jsx-quotes)
[error] 21-21: Replace
"shadow-xs·overflow-hidden·rounded-lg"
with'shadow-xs·overflow-hidden·rounded-lg'
(prettier/prettier)
[error] 21-21: Unexpected usage of doublequote.
(jsx-quotes)
[error] 22-22: Replace
"relative·z-20·grid·gap-6·bg-white·px-5·py-6·sm:gap-8·sm:p-8·lg:grid-cols-2·max-h-96·min-h-40·overflow-y-auto·scrollbar-thin·scrollbar-thumb-white·scrollbar-track-transparent"
with'relative·z-20·grid·gap-6·bg-white·px-5·py-6·sm:gap-8·sm:p-8·lg:grid-cols-2·max-h-96·min-h-40·overflow-y-auto·scrollbar-thin·scrollbar-thumb-white·scrollbar-track-transparent'
(prettier/prettier)
[error] 22-22: Unexpected usage of doublequote.
(jsx-quotes)
🪛 GitHub Actions: PR testing - if Node project
[error] 17-17: Double quotes used instead of single quotes for JSX attributes
[error] 18-18: Double quotes used instead of single quotes for JSX attributes
[error] 20-21: Double quotes used instead of single quotes for JSX attributes
[warning] 22-22: Invalid Tailwind CSS classnames order
[error] 22-22: Double quotes used instead of single quotes for JSX attributes