File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ export const CopyableValue: FC<CopyableValueProps> = ({
4040 < TooltipProvider delayDuration = { 100 } >
4141 < Tooltip
4242 open = { tooltipOpen }
43- onOpenChange = { ( next ) => {
43+ onOpenChange = { ( shouldBeOpen ) => {
4444 // Always keep the tooltip open when in focus to handle issues when onOpenChange is unexpectedly false
45- if ( ! next && isFocused ) return ;
46- setTooltipOpen ( next ) ;
45+ if ( ! shouldBeOpen && isFocused ) return ;
46+ setTooltipOpen ( shouldBeOpen ) ;
4747 } }
4848 >
4949 < TooltipTrigger asChild >
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ const IconsPage: FC = () => {
141141 ) }
142142 { searchedIcons . map ( ( icon ) => (
143143 < CopyableValue key = { icon . url } value = { icon . url } >
144- < div className = "flex flex-col gap-4 items-center max-w-full m -3" >
144+ < div className = "flex flex-col gap-4 items-center max-w-full p -3" >
145145 < img
146146 alt = { icon . url }
147147 src = { icon . url }
You can’t perform that action at this time.
0 commit comments