Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ const Card = ({ isCompact, isExtraCompact, isCenterContentStyle, isLargeIconStyl
const isLanding = template === 'landing';

let imgSize;
if (isLargeIconStyle) imgSize = '50px';
else if (isLanding) imgSize = theme.size.xlarge;
else if (template === 'product-landing') imgSize = theme.size.large;
else imgSize = theme.size.medium;
if (isLargeIconStyle) imgSize = '50';
else if (isLanding) imgSize = '64';
else if (template === 'product-landing') imgSize = '32';
else imgSize = '24';

const useCompactIcon = !['landing', 'product-landing'].includes(template);

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/__snapshots__/Card.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ exports[`renders correctly 1`] = `
width: 20px;
}
"
height="24px"
height="24"
src="/images/icons/university.svg"
width="24px"
width="24"
/>
<div
class="emotion-1"
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/__snapshots__/CardGroup.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ exports[`renders correctly 1`] = `
width: 20px;
}
"
height="24px"
height="24"
src="/images/icons/atlas.svg"
width="24px"
width="24"
/>
<div
class="emotion-2"
Expand Down Expand Up @@ -281,9 +281,9 @@ exports[`renders correctly 1`] = `
width: 20px;
}
"
height="24px"
height="24"
src="/images/icons/university.svg"
width="24px"
width="24"
/>
<div
class="emotion-2"
Expand Down Expand Up @@ -320,9 +320,9 @@ exports[`renders correctly 1`] = `
width: 20px;
}
"
height="24px"
height="24"
src="/images/icons/server.svg"
width="24px"
width="24"
/>
<div
class="emotion-2"
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/__snapshots__/CardRef.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ exports[`card correctly with and without url 1`] = `
width: 20px;
}
"
height="24px"
height="24"
src="/images/icons/realm_sdk.svg"
width="24px"
width="24"
/>
<div
class="emotion-2"
Expand Down Expand Up @@ -435,9 +435,9 @@ exports[`card correctly with and without url 1`] = `
width: 20px;
}
"
height="24px"
height="24"
src="/images/icons/realm.svg"
width="24px"
width="24"
/>
<div
class="emotion-2"
Expand Down