Skip to content

Commit 6b7e2a7

Browse files
light-planckclaude
andcommitted
fix: properly constrain logo size on mobile
- Remove wrapper div from Logo component that was causing size issues - Use fixed dimensions with Tailwind classes (24x24px on mobile, 60x60px on desktop) - Fix logo displaying at 264x264px issue 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent eb7e7db commit 6b7e2a7

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/components/icons/logo.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ interface Props {
88

99
export const Logo: FC<Props> = ({ width, height, className }) => {
1010
return (
11-
<div className={className}>
12-
<img
13-
alt="logo icon"
14-
src="logo.svg"
15-
width={width ?? 100}
16-
height={height ?? 100}
17-
className="w-full h-full"
18-
/>
19-
</div>
11+
<img
12+
alt="logo icon"
13+
src="logo.svg"
14+
width={width ?? 100}
15+
height={height ?? 100}
16+
className={className}
17+
/>
2018
);
2119
};

src/components/layouts/header/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export const Header = () => {
55
<header className="bg-gradient-to-r from-blue-50 to-blue-100 border-b border-blue-200">
66
<div className="container mx-auto px-4 py-4 sm:py-6">
77
<div className="flex items-center gap-3 sm:gap-4">
8-
<Logo width={24} height={24} className="sm:w-[60px] sm:h-[60px]" />
8+
<div className="w-6 h-6 sm:w-[60px] sm:h-[60px]">
9+
<Logo className="w-full h-full" />
10+
</div>
911
<div>
1012
<h1 className="text-xl sm:text-3xl font-bold text-gray-800">
1113
Time Wizard

0 commit comments

Comments
 (0)