Skip to content

[fix] 지원서 입력폼에서 단답형 입력 필드가 부모 너비를 초과하여 레이아웃 깨짐#603

Merged
oesnuj merged 3 commits intodevelop-fefrom
fix/#600-applyform-shorttext-width
Jul 28, 2025
Merged

[fix] 지원서 입력폼에서 단답형 입력 필드가 부모 너비를 초과하여 레이아웃 깨짐#603
oesnuj merged 3 commits intodevelop-fefrom
fix/#600-applyform-shorttext-width

Conversation

@oesnuj
Copy link
Member

@oesnuj oesnuj commented Jul 28, 2025

#️⃣ 관련 이슈

📝 작업 내용

  • InputContainer, TextAreaContainerbox-sizing: border-box, max-width: 100% 추가
  • 모바일 환경에서 입력 필드 및 텍스트 영역이 부모를 넘치던 현상 해결
  • 상위 컨테이너에는 max-width를 적용하여 반응형 대응

🎯 문제 원인

  • min-width: 300px, width: 60% 설정이 모바일에서 비율 계산에 의해 실제 너비보다 커짐
  • box-sizing 미설정으로 padding 포함 계산 시 width 초과
  • 모바일 환경에서는 fixed width/percentage 조합이 깨지기 쉬움

📷 before | after 비교

before after
image image

소개글 배경도 추가함

image

Summary by CodeRabbit

  • Style
    • 입력 필드와 텍스트 영역의 최소 너비 제한을 제거하고, 최대 너비를 100%로 변경하여 레이아웃 유연성을 개선했습니다.
    • 입력 필드의 오른쪽 패딩을 줄여 입력 공간을 최적화했습니다.
    • 신청서 설명 영역에 여백과 배경색, 둥근 모서리를 추가하여 시각적 가독성을 향상시켰습니다.

@oesnuj oesnuj self-assigned this Jul 28, 2025
@oesnuj oesnuj added 🐞 Bug Something isn't working 💻 FE Frontend 🛠Fix 기능이 의도한 대로 동작하지 않는 버그를 수정 labels Jul 28, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 28, 2025

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Invalid regex pattern for base branch. Received: "**" at "reviews.auto_review.base_branches[0]"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

"""

Walkthrough

InputField와 CustomTextArea 컴포넌트의 스타일이 변경되었습니다. 두 컴포넌트 모두 min-width 속성이 제거되고 max-width: 100%로 대체되어, 부모 컨테이너를 넘지 않도록 수정되었습니다. InputField의 padding도 조정되었으며, ApplicationFormPage의 FormDescription 스타일에 배경색과 패딩, border-radius가 추가되었습니다.

Changes

Cohort / File(s) Change Summary
CustomTextArea 스타일 변경
frontend/src/components/common/CustomTextArea/CustomTextArea.styles.ts
TextAreaContainer의 min-width: 300px을 max-width: 100%로 변경하여 최소 너비 제한을 없애고 최대 너비를 부모에 맞춤
InputField 스타일 변경
frontend/src/components/common/InputField/InputField.styles.ts
InputContainer의 min-width: 300px 제거, max-width: 100% 적용. media query에서 min-width: 0 제거. Input의 padding을 오른쪽 여백 없이 12px 18px으로 변경
ApplicationFormPage 스타일 변경
frontend/src/pages/ApplicationFormPage/ApplicationFormPage.styles.ts
FormDescription의 패딩을 늘리고 배경색(#f5f5f5)과 border-radius(6px)를 추가, 모바일 패딩도 조정

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related issues

Possibly related PRs

Suggested reviewers

  • lepitaaar
  • seongwon030
    """

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1b7fa00 and 5333c2b.

📒 Files selected for processing (1)
  • frontend/src/pages/ApplicationFormPage/ApplicationFormPage.styles.ts (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • frontend/src/pages/ApplicationFormPage/ApplicationFormPage.styles.ts
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/#600-applyform-shorttext-width

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@vercel
Copy link

vercel bot commented Jul 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
moadong ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2025 0:42am

@oesnuj oesnuj changed the title 지원서 입력폼에서 단답형 입력 필드가 부모 너비를 초과하여 레이아웃 깨짐 [fix] 지원서 입력폼에서 단답형 입력 필드가 부모 너비를 초과하여 레이아웃 깨짐 Jul 28, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
frontend/src/components/common/CustomTextArea/CustomTextArea.styles.ts (1)

3-3: InputField와의 코드 중복 해결을 고려해보세요.

TODO 주석에서 언급된 대로 InputField 컴포넌트와 중복되는 스타일이 많습니다. 공통 스타일을 추출하여 재사용성을 높이는 리팩토링을 검토해보세요.

공통 스타일 컴포넌트를 생성하여 중복을 제거하는 리팩토링 코드를 작성해드릴까요?

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 91a4ef2 and 1b7fa00.

📒 Files selected for processing (2)
  • frontend/src/components/common/CustomTextArea/CustomTextArea.styles.ts (1 hunks)
  • frontend/src/components/common/InputField/InputField.styles.ts (2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
frontend/**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (frontend/.cursorrules)

frontend/**/*.{ts,tsx}: Replace magic numbers with named constants for clarity.
Replace complex or nested ternary operators with if/else statements or IIFEs for readability.
Assign complex boolean conditions to named variables.
Use consistent return types for similar functions and hooks.
Avoid hidden side effects; functions should only perform actions implied by their signature (Single Responsibility Principle).
Use unique, descriptive names for custom wrappers and functions to avoid ambiguity.
Define constants near related logic or ensure names link them clearly.

Files:

  • frontend/src/components/common/InputField/InputField.styles.ts
  • frontend/src/components/common/CustomTextArea/CustomTextArea.styles.ts
🧠 Learnings (2)
frontend/src/components/common/InputField/InputField.styles.ts (1)

Learnt from: CR
PR: Moadong/moadong#0
File: frontend/.cursorrules:0-0
Timestamp: 2025-07-19T05:09:10.702Z
Learning: Applies to frontend/**/*.{ts,tsx} : Replace magic numbers with named constants for clarity.

frontend/src/components/common/CustomTextArea/CustomTextArea.styles.ts (1)

Learnt from: CR
PR: Moadong/moadong#0
File: frontend/.cursorrules:0-0
Timestamp: 2025-07-19T05:09:10.702Z
Learning: Applies to frontend/**/*.{ts,tsx} : Replace magic numbers with named constants for clarity.

🔇 Additional comments (3)
frontend/src/components/common/CustomTextArea/CustomTextArea.styles.ts (1)

7-7: 모바일 레이아웃 개선이 올바르게 적용되었습니다.

max-width: 100% 추가로 컨테이너가 부모 요소의 너비를 초과하지 않도록 제한하여 모바일에서의 레이아웃 깨짐 문제를 해결했습니다.

frontend/src/components/common/InputField/InputField.styles.ts (2)

5-5: 모바일 반응형 디자인이 올바르게 적용되었습니다.

max-width: 100% 속성 추가로 입력 필드가 부모 컨테이너 너비를 초과하지 않도록 제한하여 모바일에서의 레이아웃 문제를 해결했습니다.


29-29: 패딩 조정이 모바일 레이아웃에 적합합니다.

오른쪽 패딩을 80px에서 18px로 줄여서 모바일 환경에서 더 효율적인 공간 활용을 가능하게 했습니다. 이는 ClearButton이나 ToggleButton을 위한 공간 확보와 일관성을 유지합니다.

Copy link
Member

@seongwon030 seongwon030 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

단답형 깨짐 해결 좋아요

Copy link
Member

@Zepelown Zepelown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@oesnuj oesnuj merged commit d2600b5 into develop-fe Jul 28, 2025
5 checks passed
@oesnuj oesnuj removed the request for review from SeongHoonC July 28, 2025 13:02
@oesnuj oesnuj deleted the fix/#600-applyform-shorttext-width branch October 12, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 Bug Something isn't working 💻 FE Frontend 🛠Fix 기능이 의도한 대로 동작하지 않는 버그를 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments