Skip to content

Commit b327066

Browse files
authored
Merge branch 'code100x:main' into main
2 parents 7200ded + f885800 commit b327066

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
# Quick Setup Locally
22

3-
* Docker
3+
## Option 1: Using Docker
44

5-
```
5+
```bash
66
docker compose watch
77
```
88

9-
OR
10-
11-
> Install the Dependencies
9+
## Option 2: Manual Setup
1210

13-
```
11+
### 1. Install Dependencies
12+
```bash
1413
cd daily-code
1514
yarn install
1615
```
1716

18-
> Setup DB
19-
For Mac and Linux users
20-
```
17+
### 2. Setup Database
18+
19+
#### For Mac and Linux users
20+
```bash
2121
cd packages/db
2222
chmod +x ./setupDB.sh
2323
./setupDB.sh
2424
```
2525

26-
For Windows users (using docker to start db locally)
27-
```
26+
#### For Windows users
27+
```bash
2828
cd packages/db
2929
copy .env.example .env
3030
docker-compose up
3131

32-
now, write the connection string in DATABASE_URL
32+
# Configure the database connection
33+
# Add your connection string to DATABASE_URL
3334

3435
yarn prisma migrate dev
3536
yarn prisma db seed
3637
```
3738

38-
> Run locally
39-
40-
```
39+
### 3. Run Locally
40+
```bash
4141
cd ../..
4242
yarn run dev
4343
```

apps/web/components/ContentSearch.tsx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export function ContentSearch({ tracks }: { tracks: TrackPros[] }) {
144144
<span className="sr-only">Close</span>
145145
</DialogClose>
146146
</div>
147-
<div className="h-[400px] py-4 space-y-4 overflow-y-scroll" ref={scrollableContainerRef}>
147+
<div className="h-[500px] py-4 space-y-4 overflow-y-scroll" ref={scrollableContainerRef}>
148148
{searchTracks.length > 0 &&
149149
searchTracks.map((track, index) => (
150150
<div key={track.payload.problemId} className={`p-2 ${index === selectedIndex ? "bg-blue-600/20" : ""}`}>
@@ -155,17 +155,18 @@ export function ContentSearch({ tracks }: { tracks: TrackPros[] }) {
155155
passHref
156156
>
157157
<Card className="p-2 w-full mx-2">
158-
<div className="flex my-2">
159-
<img
160-
alt={track.payload.problemTitle}
161-
src={track.payload.image}
162-
className="flex mx-2 w-1/6 rounded-xl"
163-
/>
164-
165-
<div>
166-
<CardHeader>
167-
<CardTitle>{track.payload.problemTitle}</CardTitle>
168-
<CardDescription>{track.payload.trackTitle}</CardDescription>
158+
<div className="flex items-center gap-4 py-1 sm:py-2">
159+
<div className="w-16 h-16 sm:w-20 sm:h-20 flex-shrink-0 overflow-hidden rounded-xl">
160+
<img
161+
alt={track.payload.problemTitle}
162+
src={track.payload.image}
163+
className="w-full h-full object-cover"
164+
/>
165+
</div>
166+
<div className="flex-1 min-w-0">
167+
<CardHeader className="p-0">
168+
<CardTitle className="text-base sm:text-lg md:text-xl">{track.payload.problemTitle}</CardTitle>
169+
<CardDescription className="text-sm truncate">Track: {track.payload.trackTitle}</CardDescription>
169170
</CardHeader>
170171
</div>
171172
</div>

0 commit comments

Comments
 (0)