Skip to content

Commit

Permalink
Fixing console warning re Image component - Tailwind issue - https://…
Browse files Browse the repository at this point in the history
  • Loading branch information
jgbharris committed Aug 30, 2024
1 parent 5016f4f commit 2325e93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/navbar/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const Logo = () => {
className="hidden cursor-pointer md:block"
width={100}
height={100}
style={{ width: "100px", height: "auto" }}
priority
// style={{ width: "100px", height: "60px" }}
/>
</div>
);
Expand Down
7 changes: 7 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
@tailwind components;
@tailwind utilities;

@layer base {
img {
width: auto;
height: auto;
}
}

html,
body,
:root {
Expand Down

0 comments on commit 2325e93

Please sign in to comment.