Merge branch 'update-thumb-navigation' into 'main'

Update thumb navigation

Closes #1807

See merge request soapbox-pub/soapbox!3314
merge-requests/3315/head
Alex Gleason 2025-01-27 16:50:19 +00:00
commit d567a5b1db
3 zmienionych plików z 12 dodań i 11 usunięć

Wyświetl plik

@ -1,5 +1,6 @@
import Icon, { IIcon } from 'soapbox/components/icon.tsx'; import { IIcon } from 'soapbox/components/icon.tsx';
import Counter from 'soapbox/components/ui/counter.tsx'; import Counter from 'soapbox/components/ui/counter.tsx';
import Icon from 'soapbox/components/ui/icon.tsx';
interface IIconWithCounter extends React.HTMLAttributes<HTMLDivElement> { interface IIconWithCounter extends React.HTMLAttributes<HTMLDivElement> {
count: number; count: number;

Wyświetl plik

@ -55,7 +55,7 @@ const SidebarNavigationLink = forwardRef((props: ISidebarNavigationLink, ref: Re
count={count} count={count}
countMax={countMax} countMax={countMax}
className={clsx('size-5', { className={clsx('size-5', {
'text-gray-600 black:text-white dark:text-gray-500 group-hover:text-gray-900 dark:group-hover:text-gray-50': !isActive, 'text-gray-600 black:text-gray-500 dark:text-gray-500 group-hover:text-gray-900 dark:group-hover:text-gray-50': !isActive,
'text-gray-900 dark:text-gray-50': isActive, 'text-gray-900 dark:text-gray-50': isActive,
})} })}
/> />

Wyświetl plik

@ -37,9 +37,9 @@ const ThumbNavigationLink: React.FC<IThumbNavigationLink> = ({ count, countMax,
<IconWithCounter <IconWithCounter
src={icon} src={icon}
className={clsx({ className={clsx({
'h-5 w-5': true, 'size-5': true,
'text-gray-600 black:text-white': !active, 'text-black dark:text-white black:text-white': active,
'text-primary-500': active, 'text-gray-600': !active,
})} })}
count={count} count={count}
countMax={countMax} countMax={countMax}
@ -48,9 +48,9 @@ const ThumbNavigationLink: React.FC<IThumbNavigationLink> = ({ count, countMax,
<Icon <Icon
src={icon} src={icon}
className={clsx({ className={clsx({
'h-5 w-5': true, 'size-5': true,
'text-gray-600 black:text-white': !active, 'text-black black:text-white dark:text-white': active,
'text-primary-500': active, 'text-gray-600 black:text-gray-500 dark:text-gray-500': !active,
})} })}
/> />
)} )}
@ -60,9 +60,9 @@ const ThumbNavigationLink: React.FC<IThumbNavigationLink> = ({ count, countMax,
size='xs' size='xs'
weight='medium' weight='medium'
className={clsx({ className={clsx({
'text-gray-600': !active, 'text-gray-600 black:text-white dark:text-white': active,
'text-primary-500': active, '!text-gray-600 black:!text-gray-500 dark:!text-gray-500': !active,
})} })}text-primary-500
> >
{text} {text}
</Text> </Text>