Refine entity icons

This commit is contained in:
Sam Becker 2025-03-16 10:20:38 -05:00
parent 3ec5f77542
commit bb2c8dddc6
3 changed files with 7 additions and 4 deletions

View File

@ -89,6 +89,7 @@ export default function EntityLink({
href && !badged && 'hover:text-gray-900 dark:hover:text-gray-100', href && !badged && 'hover:text-gray-900 dark:hover:text-gray-100',
classNameIcon, classNameIcon,
), ),
classNameIcon: 'text-dim',
debug, debug,
}}> }}>
{badged {badged

View File

@ -19,7 +19,8 @@ export default function Icon({
}) { }) {
return ( return (
<span className={clsx( <span className={clsx(
'h-[1rem] *:translate-y-[2.5px]', 'h-[0.95rem]',
'sm:h-[1rem] *:translate-y-[2.5px]',
wide ? 'w-[28px]' : 'w-[14px]', wide ? 'w-[28px]' : 'w-[14px]',
'inline-flex items-center justify-center', 'inline-flex items-center justify-center',
debug && 'bg-gray-300 dark:bg-gray-700', debug && 'bg-gray-300 dark:bg-gray-700',

View File

@ -3,7 +3,7 @@ import { Lens, formatLensText } from '.';
import EntityLink, { import EntityLink, {
EntityLinkExternalProps, EntityLinkExternalProps,
} from '@/components/primitives/EntityLink'; } from '@/components/primitives/EntityLink';
import { TbCone } from 'react-icons/tb'; import { RiCameraLensLine } from 'react-icons/ri';
export default function PhotoLens({ export default function PhotoLens({
lens, lens,
@ -22,8 +22,9 @@ export default function PhotoLens({
<EntityLink <EntityLink
label={formatLensText(lens)} label={formatLensText(lens)}
href={pathForLens(lens)} href={pathForLens(lens)}
icon={<TbCone icon={<RiCameraLensLine
className="rotate-[270deg] translate-x-[-1px] translate-y-[-0.5px]" size={14}
className="translate-x-[-0.5px] translate-y-[-0.5px]"
/>} />}
type={type} type={type}
className={className} className={className}