Skip to content

Commit c6c37df

Browse files
willwearingclaude
andauthored
fix: prevent section action label wrapping + run migrations in CI deploy (#119)
- Add shrink-0 and whitespace-nowrap to section card action label so "Start Studying" stays on one line instead of wrapping at narrow widths - Add prisma migrate deploy step to deploy-backend job so production migrations run automatically on merge to main (requires DATABASE_URL and DIRECT_URL GitHub secrets) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9f1863f commit c6c37df

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/ci-deploy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,22 @@ jobs:
188188
steps:
189189
- uses: actions/checkout@v5
190190

191+
- uses: oven-sh/setup-bun@v2
192+
with:
193+
bun-version: "1.3.6"
194+
195+
- name: Install dependencies
196+
run: bun install
197+
198+
- name: Generate Prisma client
199+
run: cd backend && bun x prisma generate
200+
201+
- name: Run production migrations
202+
run: cd backend && bun x prisma migrate deploy
203+
env:
204+
DATABASE_URL: ${{ secrets.DATABASE_URL }}
205+
DIRECT_URL: ${{ secrets.DIRECT_URL }}
206+
191207
- name: Install Railway CLI
192208
run: npm install -g @railway/cli
193209

apps/web/src/app/(app)/browse/[courseId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export default async function CourseDetailPage({
289289
</p>
290290
</div>
291291
{actionLabel ? (
292-
<div className="inline-flex items-center gap-1 self-start text-sm font-medium text-primary">
292+
<div className="inline-flex items-center gap-1 self-start shrink-0 whitespace-nowrap text-sm font-medium text-primary">
293293
<span>{actionLabel}</span>
294294
<ArrowRight className="h-4 w-4" />
295295
</div>

0 commit comments

Comments
 (0)