Eliminate CLS in Recommended due to wrapper mismatch

Seem like `type === small` was missed out, so it was using a wrapper than necessary, causing the shift.
This commit is contained in:
infinite-persistence 2021-07-23 11:29:15 +08:00
parent c62c667436
commit 7a8d213861
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -14,6 +14,7 @@ function ClaimPreviewLoading(props: Props) {
className={classnames('claim-preview__wrapper', {
'claim-preview__wrapper--channel': isChannel && type !== 'inline',
'claim-preview__wrapper--inline': type === 'inline',
'claim-preview__wrapper--small': type === 'small',
})}
>
<div className={classnames('claim-preview', { 'claim-preview--large': type === 'large' })}>