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
3b2cc765
Commit
3b2cc765
authored
Jul 17, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tooltip width
parent
7dc8252b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7 additions
and
7 deletions
+7
-7
Tooltip.ts
theme/components/Tooltip/Tooltip.ts
+1
-1
MarketplaceAppIntegrationIcon.tsx
ui/marketplace/MarketplaceAppIntegrationIcon.tsx
+1
-1
HashStringShortenDynamic.tsx
ui/shared/HashStringShortenDynamic.tsx
+1
-1
Hint.tsx
ui/shared/Hint.tsx
+1
-1
TruncatedTextTooltip.tsx
ui/shared/TruncatedTextTooltip.tsx
+1
-1
AddressEntity.tsx
ui/shared/entities/address/AddressEntity.tsx
+1
-1
AddressEntity.pw.tsx_default_contract-unverified-1.png
...__/AddressEntity.pw.tsx_default_contract-unverified-1.png
+0
-0
AddressEntity.pw.tsx_default_hover-1.png
.../__screenshots__/AddressEntity.pw.tsx_default_hover-1.png
+0
-0
FileSnippet.tsx
ui/shared/forms/FileSnippet.tsx
+1
-1
No files found.
theme/components/Tooltip/Tooltip.ts
View file @
3b2cc765
...
@@ -35,7 +35,7 @@ const baseStyle = defineStyle((props) => {
...
@@ -35,7 +35,7 @@ const baseStyle = defineStyle((props) => {
[
$bg
.
variable
]:
`colors.
${
bg
}
`
,
[
$bg
.
variable
]:
`colors.
${
bg
}
`
,
[
$fg
.
variable
]:
`colors.
${
fg
}
`
,
[
$fg
.
variable
]:
`colors.
${
fg
}
`
,
[
$arrowBg
.
variable
]:
$bg
.
reference
,
[
$arrowBg
.
variable
]:
$bg
.
reference
,
maxWidth
:
props
.
maxWidth
||
props
.
maxW
||
'
unset
'
,
maxWidth
:
props
.
maxWidth
||
props
.
maxW
||
'
calc(100vw - 8px)
'
,
marginX
:
'
4px
'
,
marginX
:
'
4px
'
,
};
};
});
});
...
...
ui/marketplace/MarketplaceAppIntegrationIcon.tsx
View file @
3b2cc765
...
@@ -33,7 +33,7 @@ const MarketplaceAppIntegrationIcon = ({ external, internalWallet }: Props) => {
...
@@ -33,7 +33,7 @@ const MarketplaceAppIntegrationIcon = ({ external, internalWallet }: Props) => {
textAlign=
"center"
textAlign=
"center"
padding=
{
2
}
padding=
{
2
}
openDelay=
{
300
}
openDelay=
{
300
}
maxW=
{
400
}
maxW=
{
{
base
:
'
calc(100vw - 8px)
'
,
lg
:
'
400px
'
}
}
>
>
<
IconSvg
<
IconSvg
name=
{
icon
}
name=
{
icon
}
...
...
ui/shared/HashStringShortenDynamic.tsx
View file @
3b2cc765
...
@@ -95,7 +95,7 @@ const HashStringShortenDynamic = ({ hash, fontWeight = '400', isTooltipDisabled,
...
@@ -95,7 +95,7 @@ const HashStringShortenDynamic = ({ hash, fontWeight = '400', isTooltipDisabled,
if
(
isTruncated
)
{
if
(
isTruncated
)
{
return
(
return
(
<
Tooltip
label=
{
hash
}
isDisabled=
{
isTooltipDisabled
}
maxW=
{
{
base
:
'
100vw
'
,
lg
:
'
400px
'
}
}
>
{
content
}
</
Tooltip
>
<
Tooltip
label=
{
hash
}
isDisabled=
{
isTooltipDisabled
}
maxW=
{
{
base
:
'
calc(100vw - 8px)
'
,
lg
:
'
400px
'
}
}
>
{
content
}
</
Tooltip
>
);
);
}
}
...
...
ui/shared/Hint.tsx
View file @
3b2cc765
...
@@ -28,7 +28,7 @@ const Hint = ({ label, className, tooltipProps, isLoading }: Props) => {
...
@@ -28,7 +28,7 @@ const Hint = ({ label, className, tooltipProps, isLoading }: Props) => {
<
Tooltip
<
Tooltip
label=
{
label
}
label=
{
label
}
placement=
"top"
placement=
"top"
maxW=
"320px"
maxW=
{
{
base
:
'
calc(100vw - 8px)
'
,
lg
:
'
320px
'
}
}
isOpen=
{
isOpen
}
isOpen=
{
isOpen
}
{
...
tooltipProps
}
{
...
tooltipProps
}
>
>
...
...
ui/shared/TruncatedTextTooltip.tsx
View file @
3b2cc765
...
@@ -79,7 +79,7 @@ const TruncatedTextTooltip = ({ children, label, placement }: Props) => {
...
@@ -79,7 +79,7 @@ const TruncatedTextTooltip = ({ children, label, placement }: Props) => {
return
(
return
(
<
Tooltip
<
Tooltip
label=
{
label
}
label=
{
label
}
maxW=
{
{
base
:
'
100vw
'
,
lg
:
'
400px
'
}
}
maxW=
{
{
base
:
'
calc(100vw - 8px)
'
,
lg
:
'
400px
'
}
}
placement=
{
placement
}
placement=
{
placement
}
isOpen=
{
isOpen
}
isOpen=
{
isOpen
}
>
>
...
...
ui/shared/entities/address/AddressEntity.tsx
View file @
3b2cc765
...
@@ -108,7 +108,7 @@ const Content = chakra((props: ContentProps) => {
...
@@ -108,7 +108,7 @@ const Content = chakra((props: ContentProps) => {
);
);
return
(
return
(
<
Tooltip
label=
{
label
}
maxW=
{
{
base
:
'
100vw
'
,
lg
:
'
400px
'
}
}
>
<
Tooltip
label=
{
label
}
maxW=
{
{
base
:
'
calc(100vw - 8px)
'
,
lg
:
'
400px
'
}
}
>
<
Skeleton
isLoaded=
{
!
props
.
isLoading
}
overflow=
"hidden"
textOverflow=
"ellipsis"
whiteSpace=
"nowrap"
as=
"span"
>
<
Skeleton
isLoaded=
{
!
props
.
isLoading
}
overflow=
"hidden"
textOverflow=
"ellipsis"
whiteSpace=
"nowrap"
as=
"span"
>
{
nameText
}
{
nameText
}
</
Skeleton
>
</
Skeleton
>
...
...
ui/shared/entities/address/__screenshots__/AddressEntity.pw.tsx_default_contract-unverified-1.png
View replaced file @
7dc8252b
View file @
3b2cc765
9.82 KB
|
W:
|
H:
10 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/shared/entities/address/__screenshots__/AddressEntity.pw.tsx_default_hover-1.png
View replaced file @
7dc8252b
View file @
3b2cc765
9.06 KB
|
W:
|
H:
9.26 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/shared/forms/FileSnippet.tsx
View file @
3b2cc765
...
@@ -76,7 +76,7 @@ const FileSnippet = ({ file, className, index, onRemove, isDisabled, error }: Pr
...
@@ -76,7 +76,7 @@ const FileSnippet = ({ file, className, index, onRemove, isDisabled, error }: Pr
<
Tooltip
<
Tooltip
label=
{
error
}
label=
{
error
}
placement=
"top"
placement=
"top"
maxW=
"320px"
maxW=
{
{
base
:
'
calc(100vw - 8px)
'
,
lg
:
'
320px
'
}
}
>
>
<
Box
cursor=
"pointer"
display=
"inherit"
onClick=
{
handleErrorHintIconClick
}
ml=
{
1
}
>
<
Box
cursor=
"pointer"
display=
"inherit"
onClick=
{
handleErrorHintIconClick
}
ml=
{
1
}
>
<
IconSvg
name=
"info"
boxSize=
{
5
}
color=
"error"
/>
<
IconSvg
name=
"info"
boxSize=
{
5
}
color=
"error"
/>
...
...
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