Skip to content

fix(blog): make post title responsive on mobile#7915

Merged
AmanVarshney01 merged 1 commit into
mainfrom
ankur-patch-responsive
May 22, 2026
Merged

fix(blog): make post title responsive on mobile#7915
AmanVarshney01 merged 1 commit into
mainfrom
ankur-patch-responsive

Conversation

@ankur-arch
Copy link
Copy Markdown
Contributor

@ankur-arch ankur-arch commented May 22, 2026

Summary

  • Long blog post titles (e.g. the Prisma Next EA post) were breaking word-by-word on mobile because the <h1> used a fixed type-title-5xl (4rem / 64px) at every viewport.
  • Scale the title down on smaller screens: type-title-3xl on mobile → type-title-4xl on mdtype-title-5xl on lg, with break-words hyphens-auto as a safety net.

Test plan

  • Open the Prisma Next EA blog post on mobile width (~375px) and confirm the title wraps naturally instead of putting each word on its own line.
  • Verify the title still renders at the original large size on desktop (≥1024px).
  • Spot-check a few other blog posts to confirm no regression in title sizing.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Improved responsive typography for blog post titles across different screen sizes.

Review Change Stack

Long blog titles like the Prisma Next EA post broke word-by-word on
mobile because the h1 used a fixed type-title-5xl (4rem). Scale the
title down on smaller screens and add break-words as a safety net.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment May 22, 2026 7:43pm
docs Ready Ready Preview, Comment May 22, 2026 7:43pm
eclipse Ready Ready Preview, Comment May 22, 2026 7:43pm
site Ready Ready Preview, Comment May 22, 2026 7:43pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 22, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e5161e67-84d0-4b5b-9e52-b2e3b4d929a3

📥 Commits

Reviewing files that changed from the base of the PR and between 52ca38b and 75f1e9c.

📒 Files selected for processing (1)
  • apps/blog/src/app/(blog)/[slug]/page.tsx

Walkthrough

This PR applies responsive typography scaling to the blog post page title. The heading now adapts its size across viewports using Tailwind breakpoints instead of displaying at a fixed size.

Changes

Blog post title responsive typography

Layer / File(s) Summary
Blog post title responsive typography
apps/blog/src/app/(blog)/[slug]/page.tsx
The <h1> blog post title adds responsive Tailwind classes (md:type-title-4xl, lg:type-title-5xl) to scale typography across medium and large viewports while maintaining existing text formatting classes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: making the blog post title responsive on mobile by adjusting typography classes across breakpoints.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


Comment @coderabbitai help to get the list of available commands and usage tips.

@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented May 22, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - May 22, 2026, 7:49 PM

@ankur-arch ankur-arch self-assigned this May 22, 2026
@AmanVarshney01 AmanVarshney01 merged commit 9cda317 into main May 22, 2026
17 of 18 checks passed
@AmanVarshney01 AmanVarshney01 deleted the ankur-patch-responsive branch May 22, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants