Skip to content

Commit

Permalink
make margin conditional to size as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Salief authored and Salief committed Jun 2, 2024
1 parent b1f3190 commit 85b1dd9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions apps/site/components/server/ItemFallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export function TextFallback({ size }: { size?: 'xs' | 'sm' | 'md' | 'lg' }) {
return (
<div
className={cn(
'w-1/3 md:1/4 aspect-square md:mr-1 mt-1',
size === 'lg' && 'mt-4',
'w-1/3 md:1/4 aspect-square mt-1',
size === 'lg' && 'mr-1 mt-4',
)}
>
<svg viewBox="0 0 83 54" fill="none" xmlns="http://www.w3.org/2000/svg">
Expand All @@ -119,8 +119,8 @@ export function ThreeDFallback({ size }: { size?: 'xs' | 'sm' | 'md' | 'lg' }) {
return (
<div
className={cn(
'w-1/3 md:1/4 aspect-square md:mr-1 mt-1',
size === 'lg' && 'mt-4',
'w-1/3 md:1/4 aspect-square mt-1',
size === 'lg' && 'mr-1 mt-4',
)}
>
<svg viewBox="0 0 77 54" fill="none" xmlns="http://www.w3.org/2000/svg">
Expand All @@ -140,10 +140,7 @@ export function ThreeDFallback({ size }: { size?: 'xs' | 'sm' | 'md' | 'lg' }) {
export function Unsupported({ size }: { size?: 'xs' | 'sm' | 'md' | 'lg' }) {
return (
<div
className={cn(
'w-1/6 aspect-square md:mr-1 mt-1',
size === 'lg' && 'mt-4',
)}
className={cn('w-1/6 aspect-square mt-1', size === 'lg' && 'mr-1 mt-4')}
>
<svg viewBox="0 0 33 54" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
Expand Down

0 comments on commit 85b1dd9

Please sign in to comment.