Skip to content

Commit

Permalink
fix: divider styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed May 9, 2024
1 parent c498b80 commit 973bc50
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const ComponentPicker = ({
// See https://github.com/facebook/lexical/blob/ac97dfa9e14a73ea2d6934ff566282d7f758e8bb/packages/lexical-react/src/shared/LexicalMenu.ts#L493
<div className='w-full h-full'>
<div
className='p-1 w-[260px] bg-white rounded-lg border-[0.5px] border-gray-200 shadow-lg overflow-y-auto'
className='p-1 w-[260px] bg-white rounded-lg border-[0.5px] border-gray-200 shadow-lg overflow-y-auto overflow-x-hidden'
style={{
...floatingStyles,
visibility: isPositioned ? 'visible' : 'hidden',
Expand All @@ -146,7 +146,7 @@ const ComponentPicker = ({
{
// Divider
index !== 0 && options.at(index - 1)?.group !== option.group && (
<div className='my-1 h-[1px] bg-gray-100'></div>
<div className='h-px bg-gray-100 my-1 w-screen -translate-x-1'></div>
)
}
{option.renderMenuOption({
Expand All @@ -167,7 +167,7 @@ const ComponentPicker = ({
<>
{
(!!options.length) && (
<div className='my-1 h-[1px] bg-gray-100'></div>
<div className='h-px bg-gray-100 my-1 w-screen -translate-x-1'></div>
)
}
<div className='p-1'>
Expand Down

0 comments on commit 973bc50

Please sign in to comment.