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
19623fa5
Unverified
Commit
19623fa5
authored
Mar 04, 2024
by
tom goriunov
Committed by
GitHub
Mar 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
truncate domain in domains popup (#1645)
Fixes #1644
parent
6b4b5d9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
.env.eth
configs/envs/.env.eth
+1
-0
AddressEnsDomains.tsx
ui/address/ensDomains/AddressEnsDomains.tsx
+3
-3
AddressEntity.tsx
ui/shared/entities/address/AddressEntity.tsx
+1
-1
No files found.
configs/envs/.env.eth
View file @
19623fa5
...
@@ -44,6 +44,7 @@ NEXT_PUBLIC_CONTRACT_INFO_API_HOST=https://contracts-info.services.blockscout.co
...
@@ -44,6 +44,7 @@ NEXT_PUBLIC_CONTRACT_INFO_API_HOST=https://contracts-info.services.blockscout.co
NEXT_PUBLIC_ADMIN_SERVICE_API_HOST=https://admin-rs.services.blockscout.com
NEXT_PUBLIC_ADMIN_SERVICE_API_HOST=https://admin-rs.services.blockscout.com
NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER=blockscout
NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER=blockscout
NEXT_PUBLIC_AD_BANNER_PROVIDER=hype
NEXT_PUBLIC_AD_BANNER_PROVIDER=hype
NEXT_PUBLIC_NAME_SERVICE_API_HOST=https://bens.services.blockscout.com
#meta
#meta
NEXT_PUBLIC_OG_IMAGE_URL=https://github.com/blockscout/frontend-configs/blob/main/configs/og-images/eth.jpg?raw=true
NEXT_PUBLIC_OG_IMAGE_URL=https://github.com/blockscout/frontend-configs/blob/main/configs/og-images/eth.jpg?raw=true
ui/address/ensDomains/AddressEnsDomains.tsx
View file @
19623fa5
import
{
Button
,
chakra
,
Flex
,
Grid
,
Hide
,
Popover
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
Show
,
Skeleton
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
B
ox
,
B
utton
,
chakra
,
Flex
,
Grid
,
Hide
,
Popover
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
Show
,
Skeleton
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
_clamp
from
'
lodash/clamp
'
;
import
_clamp
from
'
lodash/clamp
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
...
@@ -113,14 +113,14 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
...
@@ -113,14 +113,14 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
<
PopoverContent
w=
{
{
base
:
'
100vw
'
,
lg
:
'
500px
'
}
}
>
<
PopoverContent
w=
{
{
base
:
'
100vw
'
,
lg
:
'
500px
'
}
}
>
<
PopoverBody
px=
{
6
}
py=
{
5
}
fontSize=
"sm"
display=
"flex"
flexDir=
"column"
rowGap=
{
5
}
alignItems=
"flex-start"
>
<
PopoverBody
px=
{
6
}
py=
{
5
}
fontSize=
"sm"
display=
"flex"
flexDir=
"column"
rowGap=
{
5
}
alignItems=
"flex-start"
>
{
mainDomain
&&
(
{
mainDomain
&&
(
<
div
>
<
Box
w=
"100%"
>
<
chakra
.
span
color=
"text_secondary"
fontSize=
"xs"
>
Primary*
</
chakra
.
span
>
<
chakra
.
span
color=
"text_secondary"
fontSize=
"xs"
>
Primary*
</
chakra
.
span
>
<
Flex
alignItems=
"center"
fontSize=
"md"
mt=
{
2
}
>
<
Flex
alignItems=
"center"
fontSize=
"md"
mt=
{
2
}
>
<
EnsEntity
name=
{
mainDomain
.
name
}
fontWeight=
{
600
}
noCopy
/>
<
EnsEntity
name=
{
mainDomain
.
name
}
fontWeight=
{
600
}
noCopy
/>
{
mainDomain
.
expiry_date
&&
{
mainDomain
.
expiry_date
&&
<
chakra
.
span
color=
"text_secondary"
whiteSpace=
"pre"
>
(expires
{
dayjs
(
mainDomain
.
expiry_date
).
fromNow
()
}
)
</
chakra
.
span
>
}
<
chakra
.
span
color=
"text_secondary"
whiteSpace=
"pre"
>
(expires
{
dayjs
(
mainDomain
.
expiry_date
).
fromNow
()
}
)
</
chakra
.
span
>
}
</
Flex
>
</
Flex
>
</
div
>
</
Box
>
)
}
)
}
{
ownedDomains
.
length
>
0
&&
(
{
ownedDomains
.
length
>
0
&&
(
<
div
>
<
div
>
...
...
ui/shared/entities/address/AddressEntity.tsx
View file @
19623fa5
...
@@ -109,7 +109,7 @@ const Content = chakra((props: ContentProps) => {
...
@@ -109,7 +109,7 @@ const Content = chakra((props: ContentProps) => {
);
);
return
(
return
(
<
Tooltip
label=
{
label
}
maxW=
"100vw"
>
<
Tooltip
label=
{
label
}
maxW=
{
{
base
:
'
100vw
'
,
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"
>
{
text
}
{
text
}
</
Skeleton
>
</
Skeleton
>
...
...
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