Skip to content

[#5] View 레이아웃 관련 설정 !#6

Merged
halionaz merged 3 commits into
devfrom
feat/#5/view-layout
Jun 22, 2025
Merged

[#5] View 레이아웃 관련 설정 !#6
halionaz merged 3 commits into
devfrom
feat/#5/view-layout

Conversation

@halionaz

@halionaz halionaz commented Jun 21, 2025

Copy link
Copy Markdown
Member

❗ 연관 이슈

📌 내용

  • 본격적 작업 전 진자진짜진짜 최종 물밑작업일듯
  • index.html 변경 사항
    • viewport-fit:cover 속성을 통해 폼팩터 상관 없이 전체화면이 보여지도록 했음
    • position:fixed 설정을 통해 화면 스크롤 방지해서 울렁임 없애기 (연관 이슈 참고)
  • AppScreenWithSafeArea 컴포넌트를 만들었어요
    • 스택플로우에서 각 화면을 만들때 AppScreen이라는 친구를 쓰는데 얘를 확장한 컴포넌트임
    • 기본적으로 위쪽 노치, 다이내-믹 아일랜드, 펀치홀, 아래쪽 홈탭바 같은걸로부터 우리 컴포넌트들을 겹치지 않게 구출해줄것입니다.
      테스트 많이 안해봐서 100프로 확신은 불가함

☑️ 체크 사항 & 논의 사항

  • 화면이 스크롤 되지 않고 꼭 잘 고정되어있는지
  • 아래꺼들은 아마 Expo를 이용한 웹뷰로 테스트 해봐야 할 것들
    • 기계 모양 상관 없이 전체화면이 보여지는지
    • 근데 또 버튼이나 컴포넌트 겹쳐서 가리는건 없는지

halionaz added 2 commits June 21, 2025 18:08
- 폼펙터와 상관 없이 전체화면 보여주도록 설정하기
- position:fixed 설정을 통해 화면 스크롤 방지해서 울렁임 없애기
- 위쪽 노치, 다이내-믹 아일랜드, 펀치홀 등으로 부터 컴포넌트 구출
- 아래쪽 홈탭 같은걸로부터도 방어 가능
@halionaz halionaz requested review from Copilot and jw0202058 June 21, 2025 09:16
@halionaz halionaz self-assigned this Jun 21, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR resolves issue #5 by enhancing the layout for safe areas across various pages and updating the viewport settings.

  • Replaces with a new component in multiple pages.
  • Introduces the AppScreenWithSafeArea component to manage safe area insets on mobile devices.
  • Updates index.html to include viewport-fit=cover and applies fixed positioning to the root element.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/pages/PostPage.tsx Updated to use AppScreenWithSafeArea for handling safe areas.
src/pages/NotFoundPage.tsx Replaced AppScreen with AppScreenWithSafeArea for layout improvements.
src/pages/HomePage.tsx Swapped AppScreen with AppScreenWithSafeArea and minor UI tweaks.
src/common/components/AppScreenWithSafeArea.tsx Introduced a new component wrapping AppScreen for safe-area constraints.
index.html Enhanced viewport meta tag and fixed the root container styling.
Comments suppressed due to low confidence (1)

src/common/components/AppScreenWithSafeArea.tsx:11

  • Ensure that the parent (or its container) is styled with 'position: relative' to properly contain the absolutely positioned div or consider using padding to handle safe area insets.
      <div

Comment thread index.html
</head>
<body>
<div id="root"></div>
<div id="root" style="position: fixed; top: 0; right: 0; bottom: 0; left: 0"></div>

Copilot AI Jun 21, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] Consider moving the inline styling for the root element to an external stylesheet for enhanced maintainability and consistency.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

아라따 아라따

@halionaz halionaz merged commit f34a97b into dev Jun 22, 2025
@halionaz halionaz deleted the feat/#5/view-layout branch June 22, 2025 08:27
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.

Safe Area (화면 위 노치 / 펀치홀 크기 보장) + 화면 스크롤 방지

3 participants