Skip to content

fixed img in preview #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/web/components/TrackPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export function TrackPreview({ showPreview, setShowPreview, track }: TrackPrevie

return (
<Dialog open={showPreview} onOpenChange={() => setShowPreview(false)}>
<DialogContent className="flex items-center gap-4">
<div className="flex flex-col gap-4 w-full">
<img src={track.image} className="h-[25vh] w-full object-cover rounded-lg" />
<DialogContent className="flex items-center gap-3 ">
<div className="flex flex-col items-center justify-center gap-2 w-full">
<img src={track.image} className="h-[25vh] w-[40%] rounded-lg" />
<div className="flex flex-col gap-4 bg-primary/5 rounded-lg p-4">
<div className="flex flex-col gap-4">
<h3 className="text-xl md:text-2xl font-semibold w-full tracking-tight">{track.title}</h3>
Expand All @@ -59,7 +59,7 @@ export function TrackPreview({ showPreview, setShowPreview, track }: TrackPrevie
</div>
<p className="md:text-lg tracking-tighter line-clamp-3 text-primary/60">{truncatedDescription}</p>
</div>
<div className="flex flex-col gap-4 w-full">
<div className="flex flex-col gap-3 w-full">
<div className="flex gap-2 items-center">
<p className="flex tracking-tighter gap-2 text-primary text-lg md:text-xl font-semibold">
{track.problems.length} Chapters
Expand Down
2 changes: 1 addition & 1 deletion packages/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ datasource db {
}

model Account {
id String @id @default(cuid())
id String @id @default(cuid())
userId String
type String
provider String
Expand Down
Loading