Commit 1690f536 authored by tom goriunov's avatar tom goriunov Committed by GitHub

fix NFT attribute link and Home page graph resizer (#1237)

parent a536d876
...@@ -24,7 +24,7 @@ function formatValue(value: string | number, display: string | undefined, trait: ...@@ -24,7 +24,7 @@ function formatValue(value: string | number, display: string | undefined, trait:
} }
default: { default: {
try { try {
if (trait?.toLowerCase().includes('url')) { if (trait?.toLowerCase().includes('url') || value.toString().startsWith('http')) {
const url = new URL(String(value)); const url = new URL(String(value));
return { return {
value: url.toString(), value: url.toString(),
......
...@@ -12,7 +12,7 @@ import SearchBar from 'ui/snippets/searchBar/SearchBar'; ...@@ -12,7 +12,7 @@ import SearchBar from 'ui/snippets/searchBar/SearchBar';
const Home = () => { const Home = () => {
return ( return (
<> <Box as="main">
<Box <Box
w="100%" w="100%"
background={ config.UI.homepage.plate.background } background={ config.UI.homepage.plate.background }
...@@ -48,7 +48,7 @@ const Home = () => { ...@@ -48,7 +48,7 @@ const Home = () => {
<Transactions/> <Transactions/>
</Box> </Box>
</Flex> </Flex>
</> </Box>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment