📈 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
improved dark theme
Blue Mouse83e6e3586c52
diff --git a/src/pages/Project/View/ViewProject.jsx b/src/pages/Project/View/ViewProject.jsxindex ee42017c9..15c280a55 100644--- a/src/pages/Project/View/ViewProject.jsx+++ b/src/pages/Project/View/ViewProject.jsx@@ -342,14 +342,14 @@ const ViewProject = ({<div className='flex flex-col md:flex-row items-center md:items-start justify-between h-10'><h2 className='text-3xl font-extrabold text-gray-900 dark:text-gray-50 break-words'>{name}</h2><div className='flex mt-3 md:mt-0'>- <div className='md:border-r border-gray-200 md:pr-3 mr-3'>+ <div className='md:border-r border-gray-200 dark:border-gray-600 md:pr-3 mr-3'><span className='relative z-0 inline-flex shadow-sm rounded-md'>{_map(activePeriod.tbs, (tb, index, { length }) => (<buttonkey={tb}type='button'onClick={() => updateTimebucket(tb)}- className={cx('relative capitalize inline-flex items-center px-3 md:px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500', {+ className={cx('relative capitalize inline-flex items-center px-3 md:px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 dark:text-gray-50 dark:border-gray-800 dark:bg-gray-700 dark:hover:bg-gray-600 focus:z-10 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500', {'-ml-px': index > 0,'rounded-l-md': index === 0,'rounded-r-md': 1 + index === length,@@ -370,7 +370,7 @@ const ViewProject = ({/>{!isProjectPublic && (<div className='h-full ml-3'>- <Button onClick={openSettingsHandler} className='py-2.5 px-3 md:px-4 text-sm' secondary>+ <Button onClick={openSettingsHandler} className='py-2.5 px-3 md:px-4 text-sm dark:text-gray-50 dark:border-gray-800 dark:bg-gray-700' secondary>{t('common.settings')}</Button></div>@@ -387,7 +387,7 @@ const ViewProject = ({<div className={cx('flex flex-row items-center justify-center md:justify-end h-10 mt-16 md:mt-5 mb-4', { hidden: isPanelsDataEmpty })}><Checkbox label={t('project.showAll')} id='views' checked={showTotal} onChange={(e) => setShowTotal(e.target.checked)} /><div className='h-full ml-3'>- <Button onClick={exportAsImageHandler} className='py-2.5 px-3 md:px-4 text-sm' secondary>+ <Button onClick={exportAsImageHandler} className='py-2.5 px-3 md:px-4 text-sm dark:text-gray-50 dark:border-gray-800 dark:bg-gray-700' secondary>{t('project.exportImg')}</Button></div>diff --git a/src/ui/Dropdown.jsx b/src/ui/Dropdown.jsxindex bfa80ffab..82d152c2d 100644--- a/src/ui/Dropdown.jsx+++ b/src/ui/Dropdown.jsx@@ -16,7 +16,7 @@ const Dropdown = ({<p className='mb-2 text-sm text-gray-900'>{desc}</p>)}<div>- <Menu.Button className={cx(buttonClassName ? buttonClassName : 'inline-flex w-full rounded-md border border-gray-300 shadow-sm px-3 md:px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500', {+ <Menu.Button className={cx(buttonClassName ? buttonClassName : 'inline-flex w-full rounded-md border border-gray-300 shadow-sm px-3 md:px-4 py-2 bg-white text-sm font-medium text-gray-700 dark:text-gray-50 dark:border-gray-800 dark:bg-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500', {'justify-between': aside,'justify-center': !aside,})}>@@ -35,12 +35,12 @@ const Dropdown = ({leaveFrom='transform opacity-100 scale-100'leaveTo='transform opacity-0 scale-95'>- <Menu.Items static className='z-10 origin-top-right absolute right-0 mt-2 w-40 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none'>+ <Menu.Items static className='z-10 origin-top-right absolute right-0 mt-2 w-40 rounded-md shadow-lg bg-white dark:bg-gray-700 ring-1 ring-black ring-opacity-5 focus:outline-none'><div className='py-1'>{_map(items, item => (<Menu.Item key={keyExtractor ? keyExtractor(item) : item}><span- className={selectItemClassName ? selectItemClassName : 'text-gray-700 block px-4 py-2 text-sm cursor-pointer hover:bg-gray-200'}+ className={selectItemClassName ? selectItemClassName : 'text-gray-700 dark:text-gray-50 dark:border-gray-800 dark:bg-gray-700 block px-4 py-2 text-sm cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600'}role='menuitem'tabIndex='-1'id='menu-item-0'