Skip to content

Commit aa3b668

Browse files
authored
Merge pull request #574 from Heigvd/fix-project-icon
Fix project icon size in top bar
2 parents cf03196 + 7a104bc commit aa3b668

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

colab-webapp/src/main/node/app/src/components/projects/ProjectNav.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { DiscreetInput } from '../common/element/Input';
2020
import { MainMenuLink } from '../common/element/Link';
2121
import IllustrationDisplay from '../common/element/illustration/IllustrationDisplay';
2222
import Flex from '../common/layout/Flex';
23-
import Icon from '../common/layout/Icon';
23+
import Icon, { IconSize } from '../common/layout/Icon';
2424
import Monkeys from '../debugger/monkey/Monkeys';
2525
import { ProjectDeletedBanner } from './ProjectDeletedBanner';
2626
import { useIsProjectReadOnly } from './projectRightsHooks';
@@ -102,7 +102,11 @@ export function ProjectNav({ project }: ProjectNavProps): JSX.Element {
102102
<IllustrationDisplay
103103
illustration={project.illustration}
104104
iconSize="xs"
105-
containerClassName={cx(br_md, p_xs)}
105+
containerClassName={cx(
106+
br_md,
107+
p_xs,
108+
css({ width: IconSize.xs + 'px', height: IconSize.xs + 'px' }),
109+
)}
106110
/>
107111
<DiscreetInput
108112
value={project.name || ''}

0 commit comments

Comments
 (0)