Prevent shift when unsubscribe button is presented on hover cards

This commit is contained in:
Jackson Harper 2024-06-21 11:06:21 +08:00
parent 31c29a8290
commit b7ebb091d9

View file

@ -853,7 +853,7 @@ const SubscriptionSourceHoverContent = (
<HStack
distribution="start"
alignment="center"
css={{ width: '100%', gap: '10px' }}
css={{ width: '100%', gap: '10px', height: '35px' }}
>
{props.source.icon && <SiteIconLarge src={props.source.icon} />}
<SpanBox
@ -868,7 +868,7 @@ const SubscriptionSourceHoverContent = (
<SpanBox css={{ ml: 'auto', minWidth: '100px' }}>
{subscription && subscription.status == 'ACTIVE' && (
<Button style="ctaSubtle" css={{ fontSize: '12px' }}>
+ Unsubscribe
Unsubscribe
</Button>
)}
</SpanBox>