Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fixed long url scroll issue

Blue Mouse2d2f258388f4
diff --git a/src/pages/Project/View/ViewProject.jsx b/src/pages/Project/View/ViewProject.jsx
index 5f61ac48a..1dde4d46c 100644
--- a/src/pages/Project/View/ViewProject.jsx
+++ b/src/pages/Project/View/ViewProject.jsx
@@ -174,7 +174,7 @@ const ViewProject = ({
// That is needed when using 'Export as image' feature
// Because headless browser cannot do a request to the DDG API due to absense of The Same Origin Policy header
const [showIcons, setShowIcons] = useState(true)
- const isLoading = authenticated ? _isLoading : false
+ const isLoading = authenticated ? _isLoading : false
const tnMapping = typeNameMapping(t)
@@ -422,12 +422,14 @@ const ViewProject = ({
const url = new URL(name)
return (
- <a className='flex label hover:underline text-blue-600' href={name} target='_blank' rel='noopener noreferrer'>
+ <div>
{showIcons && !_isEmpty(url.hostname) && (
- <img className='w-5 h-5 mr-1.5' src={`https://icons.duckduckgo.com/ip3/${url.hostname}.ico`} alt='' />
+ <img className='w-5 h-5 mr-1.5 float-left' src={`https://icons.duckduckgo.com/ip3/${url.hostname}.ico`} alt='' />
)}
- {name}
- </a>
+ <a className='flex label overflow-visible hover:underline text-blue-600' href={name} target='_blank' rel='noopener noreferrer'>
+ {name}
+ </a>
+ </div>
)
}}
/>
@@ -493,7 +495,6 @@ ViewProject.propTypes = {
setProjectCache: PropTypes.func.isRequired,
setProjectViewPrefs: PropTypes.func.isRequired,
isLoading: PropTypes.bool.isRequired,
- user: PropTypes.object.isRequired,
setPublicProject: PropTypes.func.isRequired,
setLiveStatsForProject: PropTypes.func.isRequired,
authenticated: PropTypes.bool.isRequired,