📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Remove min width
Blue Moused0fcd20da5ac
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsxindex 31c551c80..82862015b 100644--- a/web/app/pages/Project/View/ViewProject.tsx+++ b/web/app/pages/Project/View/ViewProject.tsx@@ -2646,10 +2646,6 @@ const ViewProject = () => {})}- const onMeasureChange = (measure: string) => {- setActivePerfMeasure(measure)- }-const openSettingsHandler = () => {navigate(_replace(routes.project_settings, ':id', id))}@@ -3466,7 +3462,7 @@ const ViewProject = () => {{activeTab === PROJECT_TABS.performance && !isPanelsDataEmptyPerf && (<Dropdownitems={chartMetricsPerf}- className='xs:min-w-0 min-w-[170px]'+ className='xs:min-w-0'title={<p>{@@ -3489,7 +3485,7 @@ const ViewProject = () => {<Dropdowndisabled={activeChartMetricsPerf === CHART_METRICS_MAPPING_PERF.quantiles}items={chartMeasuresPerf}- className='xs:min-w-0 min-w-[170px]'+ className='xs:min-w-0'title={<p>{_find(chartMeasuresPerf, ({ id: chartId }) => chartId === activePerfMeasure)?.label}@@ -3498,7 +3494,7 @@ const ViewProject = () => {labelExtractor={(pair) => pair.label}keyExtractor={(pair) => pair.id}onSelect={({ id: pairID }) => {- onMeasureChange(pairID)+ setActivePerfMeasure(pairID)}}buttonClassName='!px-2.5'chevron='mini'diff --git a/web/app/ui/Dropdown.tsx b/web/app/ui/Dropdown.tsxindex cbf6c648d..86d4450eb 100644--- a/web/app/ui/Dropdown.tsx+++ b/web/app/ui/Dropdown.tsx@@ -51,41 +51,39 @@ function Dropdown<T>({{({ open, close }) => (<>{!_isEmpty(desc) && <p className='mb-2 text-sm text-gray-900'>{desc}</p>}- <div>- <MenuButton- onClick={onClick}- disabled={disabled}- className={cx(buttonClassName, {- 'justify-between': aside,- 'justify-center': !aside,- 'inline-flex w-full rounded-md border border-gray-300 bg-white px-3 py-2 font-mono text-sm font-medium hover:bg-gray-50 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-100 focus:outline-hidden md:px-4 dark:border-gray-800 dark:bg-slate-800 dark:hover:bg-slate-700':- !headless,- 'group inline-flex w-full px-3 py-2 font-mono text-sm font-medium outline-hidden md:px-4': headless,- 'text-gray-700 dark:text-gray-50': !disabled,- 'cursor-not-allowed text-gray-500 dark:text-gray-400': disabled,- })}- >- {title}- {chevron === 'regular' && (- <ChevronDownIcon- className={cx('-mr-1 ml-2 h-5 w-5 transform-gpu transition-transform', {- 'group-hover:text-gray-500': headless,- 'rotate-180': open,- })}- aria-hidden='true'- />- )}- {chevron === 'mini' && (- <ChevronDownIconMini- className={cx('-mr-1 ml-1 h-5 w-5 transform-gpu transition-transform', {- 'group-hover:text-gray-500': headless,- 'rotate-180': open,- })}- aria-hidden='true'- />- )}- </MenuButton>- </div>+ <MenuButton+ onClick={onClick}+ disabled={disabled}+ className={cx(buttonClassName, {+ 'justify-between': aside,+ 'justify-center': !aside,+ 'inline-flex w-full rounded-md border border-gray-300 bg-white px-3 py-2 font-mono text-sm font-medium hover:bg-gray-50 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-100 focus:outline-hidden md:px-4 dark:border-gray-800 dark:bg-slate-800 dark:hover:bg-slate-700':+ !headless,+ 'group inline-flex w-full px-3 py-2 font-mono text-sm font-medium outline-hidden md:px-4': headless,+ 'text-gray-700 dark:text-gray-50': !disabled,+ 'cursor-not-allowed text-gray-500 dark:text-gray-400': disabled,+ })}+ >+ {title}+ {chevron === 'regular' && (+ <ChevronDownIcon+ className={cx('-mr-1 ml-2 h-5 w-5 transform-gpu transition-transform', {+ 'group-hover:text-gray-500': headless,+ 'rotate-180': open,+ })}+ aria-hidden='true'+ />+ )}+ {chevron === 'mini' && (+ <ChevronDownIconMini+ className={cx('-mr-1 ml-1 h-5 w-5 transform-gpu transition-transform', {+ 'group-hover:text-gray-500': headless,+ 'rotate-180': open,+ })}+ aria-hidden='true'+ />+ )}+ </MenuButton><Transitionshow={open}