Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
4ea00c0f
Commit
4ea00c0f
authored
Apr 18, 2025
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase close delay for gas info tooltip
parent
123d5534
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
tooltip.tsx
toolkit/chakra/tooltip.tsx
+2
-1
GasInfoTooltip.tsx
ui/shared/gas/GasInfoTooltip.tsx
+2
-0
No files found.
toolkit/chakra/tooltip.tsx
View file @
4ea00c0f
...
@@ -35,6 +35,7 @@ export const Tooltip = React.forwardRef<HTMLDivElement, TooltipProps>(
...
@@ -35,6 +35,7 @@ export const Tooltip = React.forwardRef<HTMLDivElement, TooltipProps>(
lazyMount
=
true
,
lazyMount
=
true
,
unmountOnExit
=
true
,
unmountOnExit
=
true
,
triggerProps
,
triggerProps
,
closeDelay
,
...
rest
...
rest
}
=
props
;
}
=
props
;
...
@@ -71,7 +72,7 @@ export const Tooltip = React.forwardRef<HTMLDivElement, TooltipProps>(
...
@@ -71,7 +72,7 @@ export const Tooltip = React.forwardRef<HTMLDivElement, TooltipProps>(
openDelay=
{
100
}
openDelay=
{
100
}
// FIXME: chakra closes tooltip too fast, so Playwright is not able to make a screenshot of its content
// FIXME: chakra closes tooltip too fast, so Playwright is not able to make a screenshot of its content
// so we need to increase the close delay in Playwright environment
// so we need to increase the close delay in Playwright environment
closeDelay=
{
config
.
app
.
isPw
?
10
_000
:
100
}
closeDelay=
{
config
.
app
.
isPw
?
10
_000
:
closeDelay
??
100
}
open=
{
open
}
open=
{
open
}
onOpenChange=
{
handleOpenChange
}
onOpenChange=
{
handleOpenChange
}
closeOnClick=
{
false
}
closeOnClick=
{
false
}
...
...
ui/shared/gas/GasInfoTooltip.tsx
View file @
4ea00c0f
...
@@ -11,6 +11,7 @@ import type { ExcludeUndefined } from 'types/utils';
...
@@ -11,6 +11,7 @@ import type { ExcludeUndefined } from 'types/utils';
import
{
route
}
from
'
nextjs-routes
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
{
SECOND
}
from
'
lib/consts
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
{
Link
}
from
'
toolkit/chakra/link
'
;
import
{
Link
}
from
'
toolkit/chakra/link
'
;
import
type
{
TooltipProps
}
from
'
toolkit/chakra/tooltip
'
;
import
type
{
TooltipProps
}
from
'
toolkit/chakra/tooltip
'
;
...
@@ -70,6 +71,7 @@ const GasInfoTooltip = ({ children, data, dataUpdatedAt, placement }: Props) =>
...
@@ -70,6 +71,7 @@ const GasInfoTooltip = ({ children, data, dataUpdatedAt, placement }: Props) =>
interactive
interactive
showArrow=
{
false
}
showArrow=
{
false
}
contentProps=
{
{
p
:
4
,
borderRadius
:
'
md
'
}
}
contentProps=
{
{
p
:
4
,
borderRadius
:
'
md
'
}
}
closeDelay=
{
SECOND
}
>
>
{
children
}
{
children
}
</
Tooltip
>
</
Tooltip
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment