Skip to content

Commit

Permalink
Change to balance instead of pretty
Browse files Browse the repository at this point in the history
Balance is used for shorter line numbers
  • Loading branch information
JohnPhamous committed Dec 11, 2023
1 parent eff515c commit ad5b9fd
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/app-dir-mdx/app/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
font-size: 0.9rem;
line-height: 1.5;
max-width: 34ch;
text-wrap: pretty;
text-wrap: balance;
}

.center {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-storybook/app/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
font-size: 0.9rem;
line-height: 1.5;
max-width: 30ch;
text-wrap: pretty;
text-wrap: balance;
}

.center {
Expand Down
4 changes: 2 additions & 2 deletions packages/create-next-app/templates/app-tw/js/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
}

@layer utilities {
.text-pretty {
text-wrap: pretty;
.text-balance {
text-wrap: balance;
}
}
2 changes: 1 addition & 1 deletion packages/create-next-app/templates/app-tw/js/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function Home() {
->
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50 text-pretty`}>
<p className={`m-0 max-w-[30ch] text-sm opacity-50 text-balance`}>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
</a>
Expand Down
4 changes: 2 additions & 2 deletions packages/create-next-app/templates/app-tw/ts/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
}

@layer utilities {
.text-pretty {
text-wrap: pretty;
.text-balance {
text-wrap: balance;
}
}
2 changes: 1 addition & 1 deletion packages/create-next-app/templates/app-tw/ts/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function Home() {
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50 text-pretty`}>
<p className={`m-0 max-w-[30ch] text-sm opacity-50 text-balance`}>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
font-size: 0.9rem;
line-height: 1.5;
max-width: 30ch;
text-wrap: pretty;
text-wrap: balance;
}

.center {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
font-size: 0.9rem;
line-height: 1.5;
max-width: 30ch;
text-wrap: pretty;
text-wrap: balance;
}

.center {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default function Home() {
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50 text-pretty`}>
<p className={`m-0 max-w-[30ch] text-sm opacity-50 text-balance`}>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
}

@layer utilities {
.text-pretty {
text-wrap: pretty;
.text-balance {
text-wrap: balance;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default function Home() {
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50 text-pretty`}>
<p className={`m-0 max-w-[30ch] text-sm opacity-50 text-balance`}>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
}

@layer utilities {
.text-pretty {
text-wrap: pretty;
.text-balance {
text-wrap: balance;
}
}

0 comments on commit ad5b9fd

Please sign in to comment.