Skip to content

Commit 185d8d9

Browse files
committed
fixed ActivityFeedItem avatar's size
1 parent 635f063 commit 185d8d9

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

dist/cspr-design.es.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,17 +1263,14 @@ const p1 = (e, o, g = 20, C = 5) => {
12631263
big: "contentQuaternary"
12641264
};
12651265
return o[e] || o.default;
1266-
}, il = (e = "default") => {
1267-
const o = {
1268-
tiny: 0,
1269-
small: 0,
1270-
default: 4,
1271-
average: 4,
1272-
medium: 4,
1273-
big: 0
1274-
};
1275-
return o[e] || o.default;
1276-
}, ha = be.div.withConfig({
1266+
}, il = (e = "default") => ({
1267+
tiny: 0,
1268+
small: 0,
1269+
default: 4,
1270+
average: 4,
1271+
medium: 4,
1272+
big: 0
1273+
})[e], ha = be.div.withConfig({
12771274
displayName: "avatar__BackgroundWrapper",
12781275
componentId: "sc-1p1ar3a-0"
12791276
})(({

dist/cspr-design.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/avatar/avatar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const getMargin = (size: string = 'default') => {
7575
big: 0,
7676
};
7777

78-
return marginMap[size] || marginMap.default;
78+
return marginMap[size];
7979
};
8080

8181
export const BackgroundWrapper = styled.div<{

0 commit comments

Comments
 (0)