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!

Improve font legibility

Blue Mouseef92d11e2085
diff --git a/web/app/pages/Captcha/Settings/CaptchaSettings.tsx b/web/app/pages/Captcha/Settings/CaptchaSettings.tsx
index aeb09e2ab..d2d8553f3 100644
--- a/web/app/pages/Captcha/Settings/CaptchaSettings.tsx
+++ b/web/app/pages/Captcha/Settings/CaptchaSettings.tsx
@@ -399,7 +399,9 @@ const CaptchaSettings = ({ isSettings }: CaptchaSettingsProps) => {
}))
}
name='active'
- className='mt-4'
+ classes={{
+ label: 'mt-4',
+ }}
label={t('project.captcha.settings.enabled')}
hint={t('project.captcha.settings.enabledHint')}
/>
@@ -412,7 +414,9 @@ const CaptchaSettings = ({ isSettings }: CaptchaSettingsProps) => {
}))
}
name='public'
- className='mt-4'
+ classes={{
+ label: 'mt-4',
+ }}
label={t('project.settings.public')}
hint={t('project.settings.publicHint')}
/>
@@ -458,7 +462,7 @@ const CaptchaSettings = ({ isSettings }: CaptchaSettingsProps) => {
<hr className='mt-2 border-gray-200 sm:mt-5 dark:border-gray-600' />
</>
) : (
- <p className='mt-1 mb-4 font-mono text-sm text-gray-500 italic dark:text-gray-300'>
+ <p className='mt-1 mb-4 font-mono text-sm tracking-tighter text-gray-500 italic dark:text-gray-300'>
{t('project.settings.createHint')}
</p>
)}
diff --git a/web/app/pages/Captcha/View/ViewCaptcha.helpers.tsx b/web/app/pages/Captcha/View/ViewCaptcha.helpers.tsx
index 792a09e8e..ea27b4de5 100644
--- a/web/app/pages/Captcha/View/ViewCaptcha.helpers.tsx
+++ b/web/app/pages/Captcha/View/ViewCaptcha.helpers.tsx
@@ -111,7 +111,7 @@ const getSettings = (
},
tooltip: {
contents: (item: any, _: any, __: any, color: any) => {
- return `<ul class='font-mono bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
+ return `<ul class='font-mono tracking-tighter bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
<li class='font-semibold'>${
timeFormat === TimeFormat['24-hour']
? d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(item[0].x)
diff --git a/web/app/pages/Dashboard/AddProject.tsx b/web/app/pages/Dashboard/AddProject.tsx
index 436eb76b9..41a73cf4e 100644
--- a/web/app/pages/Dashboard/AddProject.tsx
+++ b/web/app/pages/Dashboard/AddProject.tsx
@@ -28,9 +28,14 @@ export const AddProject = ({ onClick, sitesCount, viewMode }: AddProjectProps) =
}),
)}
>
- <div className={cx('flex items-center font-mono', viewMode === 'list' && 'gap-2')}>
- <FolderPlusIcon className='h-12 w-12 text-gray-400 group-hover:text-gray-500 dark:text-gray-200 group-hover:dark:text-gray-400' />
- <span className='mt-2 block text-sm font-semibold text-gray-900 dark:text-gray-50 group-hover:dark:text-gray-400'>
+ <div className={cx(viewMode === 'list' && 'flex items-center')}>
+ <FolderPlusIcon
+ className={cx(
+ 'h-12 w-12 text-gray-400 group-hover:text-gray-500 dark:text-gray-200 group-hover:dark:text-gray-400',
+ viewMode === 'list' ? 'mr-2' : 'mx-auto',
+ )}
+ />
+ <span className='mt-2 block font-mono text-sm font-semibold tracking-tight text-gray-900 dark:text-gray-50 group-hover:dark:text-gray-400'>
{t('dashboard.newProject')}
</span>
</div>
diff --git a/web/app/pages/Dashboard/ProjectCard.tsx b/web/app/pages/Dashboard/ProjectCard.tsx
index b0c850076..e74acfe0c 100644
--- a/web/app/pages/Dashboard/ProjectCard.tsx
+++ b/web/app/pages/Dashboard/ProjectCard.tsx
@@ -47,7 +47,7 @@ const MiniCard = ({ labelTKey, total, percChange }: MiniCardProps) => {
const statsDidGrowUp = percChange ? percChange >= 0 : false
return (
- <div className='font-mono'>
+ <div className='font-mono tracking-tight'>
<p className='text-sm text-gray-500 dark:text-gray-300'>{t(labelTKey)}</p>
<div className='flex font-bold'>
@@ -213,7 +213,9 @@ export const ProjectCard = ({ live, project, overallStats, activePeriod, activeT
>
<div className={cx('flex flex-col', viewMode === 'list' ? 'flex-1' : 'px-4 py-4')}>
<div className={cx('flex items-center', viewMode === 'grid' ? 'justify-between' : 'justify-start gap-1')}>
- <p className='truncate font-mono text-lg font-semibold text-slate-900 dark:text-gray-50'>{name}</p>
+ <p className='truncate font-mono text-lg font-semibold tracking-tight text-slate-900 dark:text-gray-50'>
+ {name}
+ </p>
{role !== 'viewer' ? (
<Link onClick={(e) => e.stopPropagation()} to={_replace(routes.project_settings, ':id', id)}>
diff --git a/web/app/pages/Dashboard/SortSelector.tsx b/web/app/pages/Dashboard/SortSelector.tsx
index bf914fa26..c5f70c54d 100644
--- a/web/app/pages/Dashboard/SortSelector.tsx
+++ b/web/app/pages/Dashboard/SortSelector.tsx
@@ -102,7 +102,7 @@ export const SortSelector = ({ activeSort, setActiveSort, isLoading, activeTab }
<Popover className='relative'>
{({ open }) => (
<>
- <PopoverButton className='group inline-flex w-full px-2.5 py-2 font-mono text-sm font-medium text-gray-700 outline-hidden md:px-4 dark:text-gray-50'>
+ <PopoverButton className='group inline-flex w-full px-2.5 py-2 font-mono text-sm font-medium tracking-tighter text-gray-700 outline-hidden md:px-4 dark:text-gray-50'>
<ArrowUpDown className='mr-1 h-5 w-5' strokeWidth={1.5} />
<span>{sortLabel}</span>
<ChevronDownIcon
@@ -133,7 +133,7 @@ export const SortSelector = ({ activeSort, setActiveSort, isLoading, activeTab }
key={item.sort}
onClick={() => setActiveSort(item.sort)}
className={cx(
- 'block cursor-pointer rounded-md px-4 py-2 text-sm text-gray-700 hover:bg-gray-200 dark:text-gray-50 dark:hover:bg-slate-700',
+ 'block cursor-pointer rounded-md px-4 py-2 text-sm tracking-tighter text-gray-700 hover:bg-gray-200 dark:text-gray-50 dark:hover:bg-slate-700',
{
'cursor-wait': isLoading,
},
diff --git a/web/app/pages/Organisations/AddOrganisation.tsx b/web/app/pages/Organisations/AddOrganisation.tsx
index ace7408ed..21c51d7f9 100644
--- a/web/app/pages/Organisations/AddOrganisation.tsx
+++ b/web/app/pages/Organisations/AddOrganisation.tsx
@@ -23,7 +23,7 @@ export const AddOrganisation = ({ onClick, sitesCount }: AddOrganisationProps) =
>
<div>
<BuildingOffice2Icon className='mx-auto h-12 w-12 text-gray-400 group-hover:text-gray-500 dark:text-gray-200 group-hover:dark:text-gray-400' />
- <span className='mt-2 block text-sm font-semibold text-gray-900 dark:text-gray-50 group-hover:dark:text-gray-400'>
+ <span className='mt-2 block text-sm font-semibold tracking-tight text-gray-900 dark:text-gray-50 group-hover:dark:text-gray-400'>
{t('organisations.new')}
</span>
</div>
diff --git a/web/app/pages/Organisations/OrganisationCard.tsx b/web/app/pages/Organisations/OrganisationCard.tsx
index 995888f29..89cb52d1a 100644
--- a/web/app/pages/Organisations/OrganisationCard.tsx
+++ b/web/app/pages/Organisations/OrganisationCard.tsx
@@ -128,7 +128,7 @@ export const OrganisationCard = ({ organisation, reloadOrganisations }: Organisa
>
<div className='px-4 py-4'>
<div className='flex items-center justify-between'>
- <p className='truncate text-lg font-semibold text-slate-900 dark:text-gray-50'>{name}</p>
+ <p className='truncate text-lg font-semibold tracking-tight text-slate-900 dark:text-gray-50'>{name}</p>
<div className='flex items-center gap-2' onClick={(e) => e.stopPropagation()}>
{membership?.role === 'viewer' ? null : (
diff --git a/web/app/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx b/web/app/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx
index 7093ac1f7..7ea5c2024 100644
--- a/web/app/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx
+++ b/web/app/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx
@@ -336,7 +336,9 @@ const ProjectAlertsSettings = ({ isSettings }: ProjectAlertsSettingsProps) => {
}))
}
name='active'
- className='mt-4'
+ classes={{
+ label: 'mt-4',
+ }}
label={t('alert.enabled')}
hint={t('alert.enabledHint')}
/>
diff --git a/web/app/pages/Project/New/index.tsx b/web/app/pages/Project/New/index.tsx
index 2c2aca6c8..a73f68f99 100644
--- a/web/app/pages/Project/New/index.tsx
+++ b/web/app/pages/Project/New/index.tsx
@@ -176,7 +176,7 @@ const NewProject = () => {
</div>
) : null}
- <p className='mt-1 mb-4 font-mono text-sm text-gray-500 italic dark:text-gray-300'>
+ <p className='mt-1 mb-4 font-mono text-sm tracking-tighter text-gray-500 italic dark:text-gray-300'>
{t('project.settings.createHint')}
</p>
diff --git a/web/app/pages/Project/Settings/ProjectSettings.tsx b/web/app/pages/Project/Settings/ProjectSettings.tsx
index 0de3c3c0e..3d5606520 100644
--- a/web/app/pages/Project/Settings/ProjectSettings.tsx
+++ b/web/app/pages/Project/Settings/ProjectSettings.tsx
@@ -678,7 +678,9 @@ const ProjectSettings = () => {
}))
}
name='active'
- className='mt-2'
+ classes={{
+ label: 'mt-2',
+ }}
label={t('project.settings.enabled')}
hint={t('project.settings.enabledHint')}
/>
@@ -693,7 +695,9 @@ const ProjectSettings = () => {
}
}}
name='public'
- className='mt-4'
+ classes={{
+ label: 'mt-4',
+ }}
label={t('project.settings.public')}
hint={t('project.settings.publicHint')}
/>
@@ -713,7 +717,9 @@ const ProjectSettings = () => {
}
}}
name='isPasswordProtected'
- className='mt-4'
+ classes={{
+ label: 'mt-4',
+ }}
label={t('project.settings.protected')}
hint={t('project.settings.protectedHint')}
/>
diff --git a/web/app/pages/Project/View/Panels.tsx b/web/app/pages/Project/View/Panels.tsx
index 776cc9f4c..41ddf9639 100644
--- a/web/app/pages/Project/View/Panels.tsx
+++ b/web/app/pages/Project/View/Panels.tsx
@@ -843,7 +843,7 @@ const CustomEvents = ({
activeFragment={activeFragment}
onExpandClick={() => setDetailsOpened(true)}
>
- <table className='table-fixed font-mono'>
+ <table className='table-fixed font-mono tracking-tighter'>
<thead>
<tr className='text-gray-900 dark:text-gray-50'>
<th
@@ -1240,7 +1240,7 @@ const PageProperties = ({
activeFragment={activeFragment}
onExpandClick={() => setDetailsOpened(true)}
>
- <table className='table-fixed'>
+ <table className='table-fixed tracking-tighter'>
<thead>
<tr className='text-gray-900 dark:text-gray-50'>
<th
@@ -1598,7 +1598,7 @@ const Panel = ({
rel='noopener noreferrer nofollow'
aria-label={`${rowData} (opens in a new tab)`}
>
- <span className='flex items-center truncate'>{rowData}</span>
+ <span className='flex items-center truncate tracking-tighter'>{rowData}</span>
</a>
) : (
<span
@@ -1609,10 +1609,10 @@ const Panel = ({
},
)}
>
- <span className='flex items-center truncate'>{rowData}</span>
+ <span className='flex items-center truncate tracking-tighter'>{rowData}</span>
</span>
)}
- <div className='flex min-w-fit items-center pl-2'>
+ <div className='flex min-w-fit items-center pl-2 tracking-tight'>
<span className='mr-1 hidden text-gray-500 group-hover:inline dark:text-gray-200'>
({_round((count / total) * 100, 2)}%)
</span>
@@ -1628,7 +1628,7 @@ const Panel = ({
)}
{/* for pagination in tabs */}
{_size(entries) > ENTRIES_PER_PANEL ? (
- <div className='absolute bottom-0 w-[calc(100%-2rem)] font-mono sm:w-[calc(100%-3rem)]'>
+ <div className='absolute bottom-0 w-[calc(100%-2rem)] font-mono tracking-tight sm:w-[calc(100%-3rem)]'>
<div className='mb-2 flex justify-between select-none'>
<div>
<span className='text-xs font-light text-gray-500 lowercase dark:text-gray-200'>
diff --git a/web/app/pages/Project/View/ViewProject.helpers.tsx b/web/app/pages/Project/View/ViewProject.helpers.tsx
index 60daf1484..bf1a2986c 100644
--- a/web/app/pages/Project/View/ViewProject.helpers.tsx
+++ b/web/app/pages/Project/View/ViewProject.helpers.tsx
@@ -602,7 +602,7 @@ const getSettings = (
}
if (_isEmpty(compareChart)) {
- return `<ul class='font-mono bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
+ return `<ul class='font-mono tracking-tighter bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
<li class='font-semibold'>${
timeFormat === TimeFormat['24-hour']
? d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(item[0].x)
@@ -639,7 +639,7 @@ const getSettings = (
}
return `
- <ul class='font-mono bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
+ <ul class='font-mono tracking-tighter bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
${_map(item, (el: { id: string; index: number; name: string; value: string; x: Date }) => {
const { id, index, name, value, x } = el
@@ -808,7 +808,7 @@ const getSettingsSession = (
},
tooltip: {
contents: (item: any, _: any, __: any, color: any) => {
- return `<ul class='font-mono bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
+ return `<ul class='font-mono tracking-tighter bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
<li class='font-semibold'>${
timeFormat === TimeFormat['24-hour']
? d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(item[0].x)
@@ -948,7 +948,7 @@ const getSettingsError = (
},
tooltip: {
contents: (item: any, _: any, __: any, color: any) => {
- return `<ul class='font-mono bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
+ return `<ul class='font-mono tracking-tighter bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
<li class='font-semibold'>${
timeFormat === TimeFormat['24-hour']
? d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(item[0].x)
@@ -1111,7 +1111,7 @@ const getSettingsFunnels = (funnel: AnalyticsFunnel[], totalPageviews: number, t
`
return `
- <div class='font-mono bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
+ <div class='font-mono tracking-tighter bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
${title}
<hr class='border-gray-200 dark:border-gray-600' />
<table class='table-fixed'>
@@ -1280,7 +1280,7 @@ const getSettingsPerf = (
tooltip: {
contents: (item: any, _: any, __: any, color: any) => {
if (_isEmpty(compareChart)) {
- return `<ul class='font-mono bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
+ return `<ul class='font-mono tracking-tighter bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
<li class='font-semibold'>${
timeFormat === TimeFormat['24-hour']
? d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(item[0].x)
@@ -1301,7 +1301,7 @@ const getSettingsPerf = (
}
return `
- <ul class='font-mono bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
+ <ul class='font-mono tracking-tighter bg-gray-50 dark:text-gray-50 dark:bg-slate-800 rounded-md ring-1 ring-black/10 px-3 py-1'>
${_map(item, (el: { id: string; index: number; name: string; value: string; x: Date }) => {
const { id, index, name, value, x } = el
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsx
index ab10f3806..442fb9f27 100644
--- a/web/app/pages/Project/View/ViewProject.tsx
+++ b/web/app/pages/Project/View/ViewProject.tsx
@@ -3317,7 +3317,7 @@ const ViewProject = () => {
if (pairID === CHART_METRICS_MAPPING.customEvents) {
if (_isEmpty(panelsData.customs)) {
return (
- <span className='flex cursor-not-allowed items-center px-4 py-2'>
+ <span className='flex cursor-not-allowed items-center px-4 py-2 tracking-tighter'>
<BanIcon className='mr-1 h-5 w-5' strokeWidth={1.5} />
{label}
</span>
@@ -3326,12 +3326,16 @@ const ViewProject = () => {
return (
<Dropdown
- menuItemsClassName='max-w-[300px] max-h-[300px] overflow-auto'
+ menuItemsClassName='max-w-[300px] max-h-[300px] overflow-auto tracking-tighter'
items={chartMetricsCustomEvents}
title={label}
labelExtractor={(event) => (
<Checkbox
- className={cx({ hidden: isPanelsDataEmpty || analyticsLoading })}
+ classes={{
+ label: cx('tracking-tighter', {
+ hidden: analyticsLoading,
+ }),
+ }}
label={
_size(event.label) > CUSTOM_EV_DROPDOWN_MAX_VISIBLE_LENGTH ? (
<span title={event.label}>
@@ -3349,7 +3353,7 @@ const ViewProject = () => {
checked={event.active}
/>
)}
- buttonClassName='group-hover:bg-gray-200 dark:group-hover:bg-slate-700 px-4 py-2 inline-flex w-full bg-white text-sm font-medium text-gray-700 dark:text-gray-50 dark:border-gray-800 dark:bg-slate-800'
+ buttonClassName='group-hover:bg-gray-200 dark:group-hover:bg-slate-700 px-4 py-2 inline-flex w-full bg-white text-sm font-medium tracking-tighter text-gray-700 dark:text-gray-50 dark:border-gray-800 dark:bg-slate-800'
keyExtractor={(event) => event.id}
onSelect={(event, e) => {
e?.stopPropagation()
@@ -3365,7 +3369,9 @@ const ViewProject = () => {
return (
<Checkbox
- className={cx('px-4 py-2', { hidden: isPanelsDataEmpty || analyticsLoading })}
+ classes={{
+ label: cx('px-4 py-2 tracking-tighter', { hidden: analyticsLoading }),
+ }}
label={label}
disabled={conflicted}
checked={active}
@@ -3375,7 +3381,7 @@ const ViewProject = () => {
/>
)
}}
- buttonClassName='!px-2.5'
+ buttonClassName='!px-2.5 tracking-tighter'
selectItemClassName='group text-gray-700 dark:text-gray-50 dark:border-gray-800 dark:bg-slate-800 block text-sm cursor-pointer hover:bg-gray-200 dark:hover:bg-slate-700'
keyExtractor={(pair) => pair.id}
onSelect={({ id: pairID, conflicts }) => {
@@ -3428,7 +3434,9 @@ const ViewProject = () => {
return (
<Checkbox
- className='px-4 py-2'
+ classes={{
+ label: 'px-4 py-2',
+ }}
label={label}
checked={active}
onChange={() => switchActiveErrorFilter(pairID)}
diff --git a/web/app/pages/Project/View/components/ErrorDetails.tsx b/web/app/pages/Project/View/components/ErrorDetails.tsx
index 475919cb8..eef87aa49 100644
--- a/web/app/pages/Project/View/components/ErrorDetails.tsx
+++ b/web/app/pages/Project/View/components/ErrorDetails.tsx
@@ -29,8 +29,8 @@ export const ErrorDetails = ({ details }: ErrorDetailsProps) => {
return (
<div className='mb-5 flex flex-wrap justify-center gap-5 lg:justify-start'>
<div className='flex flex-col font-mono'>
- <p className='font-bold text-slate-900 max-md:text-xl md:text-2xl dark:text-gray-50'>{`${details.name}${details.message ? `: ${details.message}` : ''}`}</p>
- <p className='text-sm font-bold text-slate-800 dark:text-gray-200'>
+ <p className='font-bold tracking-tighter text-slate-900 max-md:text-xl md:text-2xl dark:text-gray-50'>{`${details.name}${details.message ? `: ${details.message}` : ''}`}</p>
+ <p className='text-sm font-bold tracking-tighter text-slate-800 dark:text-gray-200'>
{t('dashboard.atFile', {
filename: details.filename ?? 'Unknown file',
lineno: details.lineno ?? 'N/A',
diff --git a/web/app/pages/Project/View/components/Errors.tsx b/web/app/pages/Project/View/components/Errors.tsx
index 54e1ebd4a..4bb9aba68 100644
--- a/web/app/pages/Project/View/components/Errors.tsx
+++ b/web/app/pages/Project/View/components/Errors.tsx
@@ -87,7 +87,7 @@ const ErrorItem = ({ error, onClick }: ErrorItemProps) => {
{error.filename ? (
<>
<Separator className='self-center' />
- <span className='mx-1 text-xs font-normal text-gray-500'>{error.filename}</span>
+ <span className='mx-1 text-xs font-normal tracking-tighter text-gray-500'>{error.filename}</span>
</>
) : null}
</p>
diff --git a/web/app/pages/Project/View/components/LiveVisitorsDropdown.tsx b/web/app/pages/Project/View/components/LiveVisitorsDropdown.tsx
index cfdaf3f98..ea688b9e0 100644
--- a/web/app/pages/Project/View/components/LiveVisitorsDropdown.tsx
+++ b/web/app/pages/Project/View/components/LiveVisitorsDropdown.tsx
@@ -48,9 +48,11 @@ const LiveVisitorsDropdown = ({ live, onSessionSelect }: LiveVisitorsDropdownPro
onClick={() => setShow(!show)}
>
<PulsatingCircle className='mr-1.5' type='small' />
- {t('dashboard.xLiveVisitors', {
- amount: live || 0,
- })}{' '}
+ <span className='tracking-tighter'>
+ {t('dashboard.xLiveVisitors', {
+ amount: live || 0,
+ })}{' '}
+ </span>
{show ? <ChevronUpIcon className='ml-1 inline h-4 w-4' /> : <ChevronDownIcon className='ml-1 inline h-4 w-4' />}
{show ? (
<div
diff --git a/web/app/pages/Project/View/components/SearchFilters.tsx b/web/app/pages/Project/View/components/SearchFilters.tsx
index 5a2709590..00fa8511e 100644
--- a/web/app/pages/Project/View/components/SearchFilters.tsx
+++ b/web/app/pages/Project/View/components/SearchFilters.tsx
@@ -198,7 +198,9 @@ const SearchFilters = ({
checked={Boolean(override)}
onChange={setOverride}
name='overrideCurrentlyFilters'
- className='mt-4'
+ classes={{
+ label: 'mt-4',
+ }}
label={t('project.overrideCurrentlyFilters')}
/>
) : null}
diff --git a/web/app/pages/Project/View/components/TBPeriodSelector.tsx b/web/app/pages/Project/View/components/TBPeriodSelector.tsx
index 0e298fbfc..d28e2d31f 100644
--- a/web/app/pages/Project/View/components/TBPeriodSelector.tsx
+++ b/web/app/pages/Project/View/components/TBPeriodSelector.tsx
@@ -39,7 +39,7 @@ const TBPeriodSelector = ({ items, title, onSelect, activePeriod, classes }: TBP
<Popover className='relative'>
{({ open }) => (
<>
- <PopoverButton className='group inline-flex w-full px-2.5 py-2 font-mono text-sm font-medium text-gray-700 outline-hidden md:px-4 dark:text-gray-50'>
+ <PopoverButton className='group inline-flex w-full px-2.5 py-2 font-mono text-sm font-medium tracking-tighter text-gray-700 outline-hidden md:px-4 dark:text-gray-50'>
<CalendarIcon className='mr-1 h-5 w-5' strokeWidth={1.5} />
<span>{title}</span>
<ChevronDownIcon
@@ -81,20 +81,23 @@ const TBPeriodSelector = ({ items, title, onSelect, activePeriod, classes }: TBP
updateTimebucket(value)
}}
- className={cx('relative inline-flex items-center text-sm font-medium capitalize', {
- 'text-gray-900 dark:text-gray-50': timeBucket === value,
- 'text-gray-700 dark:text-gray-300': available && timeBucket !== value,
- 'text-gray-400 dark:text-gray-500': !available && timeBucket !== value,
- 'cursor-pointer': available && !dataLoading,
- 'cursor-wait': available && dataLoading,
- 'cursor-default': !available,
- })}
+ className={cx(
+ 'relative inline-flex items-center text-sm font-medium tracking-tighter capitalize',
+ {
+ 'text-gray-900 dark:text-gray-50': timeBucket === value,
+ 'text-gray-700 dark:text-gray-300': available && timeBucket !== value,
+ 'text-gray-400 dark:text-gray-500': !available && timeBucket !== value,
+ 'cursor-pointer': available && !dataLoading,
+ 'cursor-wait': available && dataLoading,
+ 'cursor-default': !available,
+ },
+ )}
>
{label}
</PopoverButton>
))}
</div>
- <ul className={cx('w-full text-left', classes?.periods)}>
+ <ul className={cx('w-full text-left tracking-tighter', classes?.periods)}>
{_map(items, (item) => (
<PopoverButton
as='li'
diff --git a/web/app/pages/UserSettings/UserSettings.tsx b/web/app/pages/UserSettings/UserSettings.tsx
index 6bbb72677..cd79425c3 100644
--- a/web/app/pages/UserSettings/UserSettings.tsx
+++ b/web/app/pages/UserSettings/UserSettings.tsx
@@ -834,7 +834,9 @@ const UserSettings = () => {
onChange={handleShowLiveVisitorsSave}
disabled={settingUpdating}
name='active'
- className='mt-4'
+ classes={{
+ label: 'mt-4',
+ }}
label={t('profileSettings.showVisitorsInTitle')}
/>
</>
@@ -885,7 +887,9 @@ const UserSettings = () => {
onChange={handleReceiveLoginNotifications}
disabled={settingUpdating}
name='receiveLoginNotifications'
- className='mt-4'
+ classes={{
+ label: 'mt-4',
+ }}
label={t('profileSettings.receiveLoginNotifications')}
/>
) : null}
diff --git a/web/app/ui/Badge.tsx b/web/app/ui/Badge.tsx
index 7bbb5adb7..d4ee51840 100644
--- a/web/app/ui/Badge.tsx
+++ b/web/app/ui/Badge.tsx
@@ -9,7 +9,7 @@ export interface BadgeProps {
export const Badge = ({ label, className, colour }: BadgeProps) => (
<span
className={cx(
- 'inline-flex items-center rounded-md px-2 py-1 font-mono text-xs font-medium ring-1 ring-inset',
+ 'inline-flex items-center rounded-md px-2 py-1 font-mono text-xs font-medium tracking-tight ring-1 ring-inset',
className,
{
'bg-slate-50 text-slate-600 ring-slate-500/10 dark:bg-slate-400/10 dark:text-slate-400 dark:ring-slate-400/20':
diff --git a/web/app/ui/Checkbox.tsx b/web/app/ui/Checkbox.tsx
index 575f6aed7..ad476f3fa 100644
--- a/web/app/ui/Checkbox.tsx
+++ b/web/app/ui/Checkbox.tsx
@@ -7,16 +7,18 @@ interface CheckboxProps {
label: React.ReactNode
hint?: React.ReactNode
name?: string
- className?: string
onChange?: (checked: boolean) => void
checked?: boolean
- hintClassName?: string
disabled?: boolean
+ classes?: {
+ label?: string
+ hint?: string
+ }
}
-const Checkbox = ({ label, hint, name, className, onChange, checked, hintClassName, disabled }: CheckboxProps) => (
- <Field className={className} disabled={disabled}>
- <div className='flex items-center gap-2'>
+const Checkbox = ({ label, hint, name, onChange, checked, disabled, classes }: CheckboxProps) => (
+ <Field disabled={disabled}>
+ <div className={cx('flex items-center gap-2', classes?.label)}>
<HeadlessCheckbox
name={name}
checked={checked}
@@ -28,7 +30,7 @@ const Checkbox = ({ label, hint, name, className, onChange, checked, hintClassNa
<Label className='cursor-pointer font-mono text-sm font-medium text-gray-900 dark:text-gray-200'>{label}</Label>
</div>
{hint ? (
- <Description className={cx('mt-1 text-sm text-gray-500 dark:text-gray-300', hintClassName)}>{hint}</Description>
+ <Description className={cx('mt-1 text-sm text-gray-500 dark:text-gray-300', classes?.hint)}>{hint}</Description>
) : null}
</Field>
)
diff --git a/web/app/ui/Pagination.tsx b/web/app/ui/Pagination.tsx
index a73b1c21c..83e7ead96 100644
--- a/web/app/ui/Pagination.tsx
+++ b/web/app/ui/Pagination.tsx
@@ -40,7 +40,7 @@ const Pagination = ({
return (
<div
className={cx(
- 'flex items-center justify-between border-t border-gray-200 py-3 font-mono dark:border-gray-700',
+ 'flex items-center justify-between border-t border-gray-200 py-3 font-mono tracking-tighter dark:border-gray-700',
className,
)}
>