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!

ultra-small live visitors flags fix

Blue Mousec8ffd8f10522
diff --git a/app/pages/Project/View/components/LiveVisitorsDropdown.tsx b/app/pages/Project/View/components/LiveVisitorsDropdown.tsx
index 68ae3e73b..c743f15b3 100644
--- a/app/pages/Project/View/components/LiveVisitorsDropdown.tsx
+++ b/app/pages/Project/View/components/LiveVisitorsDropdown.tsx
@@ -51,7 +51,7 @@ const LiveVisitorsDropdown = ({ live, projectId, projectPassword }: ILiveVisitor
{show ? <ChevronUpIcon className='inline w-4 h-4 ml-1' /> : <ChevronDownIcon className='inline w-4 h-4 ml-1' />}
{show && (
<div
- className={`absolute z-10 mt-2 right-0 top-3 text-gray-900 bg-white border border-gray-200 rounded-md shadow-lg dark:bg-slate-900 dark:border-slate-700/50 max-h-[200px] overflow-y-auto ${
+ className={`absolute scrollbar-thin z-10 mt-2 right-0 top-3 text-gray-900 bg-white border border-gray-200 rounded-md shadow-lg dark:bg-slate-900 dark:border-slate-700/50 max-h-[200px] overflow-y-auto ${
liveInfo.length === 0 ? 'min-w-[200px]' : 'min-w-max'
}`}
>
@@ -67,8 +67,8 @@ const LiveVisitorsDropdown = ({ live, projectId, projectPassword }: ILiveVisitor
key={`${dv}${br}${os}${cc}${index}`}
className='rounded-md text-sm text-gray-900 dark:text-gray-50'
>
- <td className='py-2 pl-2 pr-2 rounded-l-lg bg-gray-100 dark:bg-slate-800'>
- <Flag className='rounded-sm' country={cc} size={21} alt='' aria-hidden='true' />
+ <td className='pr-2 rounded-l-lg bg-gray-100 dark:bg-slate-800'>
+ <Flag className='rounded-sm m-2' country={cc} size={21} alt='' aria-hidden='true' />
</td>
<td className='bg-gray-100 dark:bg-slate-800 pr-2'>{os}</td>
<td className='bg-gray-100 dark:bg-slate-800 pr-2'>{br}</td>
diff --git a/app/styles/index.css b/app/styles/index.css
index eab74d441..f943f5798 100644
--- a/app/styles/index.css
+++ b/app/styles/index.css
@@ -199,6 +199,10 @@ code {
scrollbar-width: thin;
}
+.scrollbar-thin {
+ scrollbar-width: thin;
+}
+
.disabled {
opacity: 0.8;
cursor: not-allowed;