Skip to content

Commit 3d981b7

Browse files
JonasBaadrian-codecov
authored andcommitted
cmd: fix icon size (#88649)
Icon was huge because no size was set.
1 parent 2aa0f89 commit 3d981b7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

static/app/components/search/searchResult.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ type Props = {
1818
matches: Result['matches'];
1919
};
2020

21+
const DEFAULT_AVATAR_SIZE = 24;
22+
2123
function renderResultType({resultType, model}: Result['item']) {
2224
switch (resultType) {
2325
case 'settings':
@@ -27,11 +29,11 @@ function renderResultType({resultType, model}: Result['item']) {
2729
case 'route':
2830
return <IconLink />;
2931
case 'integration':
30-
return <StyledPluginIcon pluginId={model.slug} />;
32+
return <StyledPluginIcon size={DEFAULT_AVATAR_SIZE} pluginId={model.slug} />;
3133
case 'sentryApp':
32-
return <SentryAppAvatar sentryApp={model} />;
34+
return <SentryAppAvatar size={DEFAULT_AVATAR_SIZE} sentryApp={model} />;
3335
case 'docIntegration':
34-
return <DocIntegrationAvatar docIntegration={model} />;
36+
return <DocIntegrationAvatar size={DEFAULT_AVATAR_SIZE} docIntegration={model} />;
3537
default:
3638
return null;
3739
}

0 commit comments

Comments
 (0)