Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fixes overflow on long site urls (#749)

Vignesh Joglekar09658810b88e
diff --git a/assets/js/dashboard/site-switcher.js b/assets/js/dashboard/site-switcher.js
index 3a4d792c8b..fa56cb5a00 100644
--- a/assets/js/dashboard/site-switcher.js
+++ b/assets/js/dashboard/site-switcher.js
@@ -73,7 +73,7 @@ export default class SiteSwitcher extends React.Component {
<a href={domain === this.props.site.domain ? null : `/${encodeURIComponent(domain)}`} key={domain} className={`flex items-center justify-between truncate px-4 py-2 md:text-sm leading-5 text-gray-700 dark:text-gray-300 ${extraClass}`}>
<span>
<img src={`https://icons.duckduckgo.com/ip3/${domain}.ico`} referrerPolicy="no-referrer" className="inline w-4 mr-2 align-middle" />
- <span>{domain}</span>
+ <span class="truncate inline-block align-middle max-w-3xs pr-2">{domain}</span>
</span>
{index < 9 && <span>{index+1}</span>}
</a>
diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js
index 8b224fe958..a565524496 100644
--- a/assets/tailwind.config.js
+++ b/assets/tailwind.config.js
@@ -31,6 +31,7 @@ module.exports = {
},
maxWidth: {
'2xs': '16rem',
+ '3xs': '12rem',
}
},
},