fix: premium badge styling (#19609)

This commit is contained in:
Nite Knite 2025-05-13 17:04:26 +08:00 • committed by GitHub
commit be51384549
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 156 additions and 150 deletions

View file

@ -61,13 +61,9 @@ const PremiumBadge: React.FC<PremiumBadgeProps> = ({
{children}
<Highlight
className={classNames(
'absolute top-0 opacity-50 hover:opacity-80',
'absolute top-0 opacity-50 right-1/2 translate-x-[20%] transition-all duration-100 ease-out hover:opacity-80 hover:translate-x-[30%]',
size === 's' ? 'h-[18px] w-12' : 'h-6 w-12',
)}
style={{
right: '50%',
transform: 'translateX(10%)',
}}
/>
</div>
)