-
Notifications
You must be signed in to change notification settings - Fork 3
π Hotfix: λ°λ minheight λ°°κ²½ μμ #194
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ export default function RootLayout({ | |
| return ( | ||
| <div className="min-h-screen"> | ||
| <Header /> | ||
| <div className="flex flex-col items-center bg-gray-50"> | ||
| <div className="flex min-h-screen flex-col items-center bg-gray-50"> | ||
| <main className="container flex max-w-pc flex-1 flex-col md:shadow-bg">{children}</main> | ||
| </div> | ||
| </div> | ||
|
Comment on lines
12
to
17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π‘ Codebase verification μ€μ²©λ min-h-screen ν΄λμ€λ‘ μΈν λ μ΄μμ λ¬Έμ κ° μμ μ μμ΅λλ€ νμ¬ κ΅¬νμμ
μ΄λ λ€μκ³Ό κ°μ λ¬Έμ λ₯Ό μΌμΌν¬ μ μμ΅λλ€:
κΆμ₯μ¬ν:
π Analysis chainλ μ΄μμ λ³κ²½μ΄ μλν λλ‘ μλνλμ§ νμΈμ΄ νμν©λλ€ μ΄ λ³κ²½μ¬νμ΄ CR-1 ν°μΌμμ μΈκΈλ λ°λ minheight λ°°κ²½ λ¬Έμ λ₯Ό ν΄κ²°νλμ§ νμΈμ΄ νμν©λλ€. νΉν:
λ€μ μ€ν¬λ¦½νΈλ‘ κ΄λ ¨ μ€νμΌ λ³κ²½μ¬νμ νμΈν μ μμ΅λλ€: π Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: λ μ΄μμ κ΄λ ¨ μ€νμΌ λ³κ²½μ¬ν νμΈ
# νλ‘μ νΈμμ min-h-screen μ¬μ© ν¨ν΄ νμΈ
rg "min-h-screen" --type tsx --type jsx
# μ μ¬ν λ μ΄μμ μ»΄ν¬λνΈ κ²μ
ast-grep --pattern 'export default function $_(props: { children: React.ReactNode }) {
return (
<div className=$_>
$$$
</div>
)
}'
Length of output: 218 Script: #!/bin/bash
# λ μ΄μμ κ΄λ ¨ μ€νμΌ λ³κ²½μ¬ν νμΈ
# min-h-screen μ¬μ© ν¨ν΄ νμΈ (νμΌ νμ₯μ μμ )
rg "min-h-screen" -t ts -t js -t tsx -t jsx
# λ μ΄μμ μ»΄ν¬λνΈ κ²μ
rg "export default function.*layout.*children.*React\.ReactNode" -t ts -t js -t tsx -t jsx
# κΈ°μ‘΄ λ μ΄μμ νμΌμ μ΄μ λ³κ²½μ¬ν νμΈ
git log -p -- "src/app/(crew)/layout.tsx"
Length of output: 192 Script: #!/bin/bash
# λ μ΄μμ κ΄λ ¨ μ€νμΌ λ³κ²½μ¬ν νμΈ
# min-h-screen μ¬μ© ν¨ν΄ νμΈ
rg "min-h-screen"
# λͺ¨λ λ μ΄μμ νμΌ μ°ΎκΈ°
fd "layout.tsx"
# λ μ΄μμ μ»΄ν¬λνΈμ μ΄μ ꡬν νμΈ
cat src/app/\(crew\)/layout.tsx
Length of output: 953 |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π οΈ Refactor suggestion
μ€λ³΅λ min-h-screen ν΄λμ€λ₯Ό μ κ±°νλ κ²μ΄ μ’μ΅λλ€
λ°κΉ₯μͺ½ divμ μμͺ½ div λͺ¨λμ
min-h-screenν΄λμ€κ° μ μ©λμ΄ μμ΅λλ€. μ΄λ λΆνμν μ€λ³΅μ΄λ©°, λ°κΉ₯μͺ½ divμ ν΄λμ€λ§μΌλ‘λ μΆ©λΆν κ² κ°μ΅λλ€.λ€μκ³Ό κ°μ΄ μμ νλ κ²μ μ μλ립λλ€:
π Committable suggestion