Skip to content

Commit

Permalink
fix(web): drink img path
Browse files Browse the repository at this point in the history
  • Loading branch information
betofigueiredo committed Apr 3, 2024
1 parent f5e0d61 commit 861a155
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/components/DrinkRow/DrinkRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const DrinkRow = ({ drink }: { drink: Drink }) => {
<div className="mb-7 grid grid-cols-[max-content_1fr] text-slate-950">
<div className="mr-6 size-16 overflow-hidden border-[5px] ">
<img
src={`/images/drinks/${drink?.oldId}/${drink?.oldId}p.jpg`}
src={`/images/drinks/${drink?.oldId}p.jpg`}
className="transition-all duration-200 group-hover:scale-110 group-hover:opacity-90"
width="64"
/>
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/DrinkView/DrinkView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import DrinkDescription from "./components/DrinkDescription";
const DrinkView = ({ drink }: { drink?: Drink }) => (
<div className="grid gap-4 text-gray-700 md:grid-cols-[max-content_1fr]">
<div className="pt-10 md:pr-36">
<img src={`/images/drinks/${drink?.oldId}/${drink?.oldId}g.jpg`} />
<img src={`/images/drinks/${drink?.oldId}g.jpg`} />
</div>
<div>
<Breadcrumbs />
Expand Down
4 changes: 1 addition & 3 deletions web/src/pages/Highlight/Highlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ const Highlight = () => {
>
<div className="pr-20 pt-4">
<Link to={`/drinques/${drink.oldId}`}>
<img
src={`/images/drinks/${drink?.oldId}/${drink?.oldId}g.jpg`}
/>
<img src={`/images/drinks/${drink?.oldId}g.jpg`} />
</Link>
</div>
<div className="mt-4">
Expand Down

0 comments on commit 861a155

Please sign in to comment.