Skip to content

🐛 Bug: 리스트 페이지 z-index 수정#148

Merged
aahreum merged 2 commits intomainfrom
fix/floating-button
Oct 13, 2025
Merged

🐛 Bug: 리스트 페이지 z-index 수정#148
aahreum merged 2 commits intomainfrom
fix/floating-button

Conversation

@aahreum
Copy link
Member

@aahreum aahreum commented Oct 13, 2025

🔗 이슈 번호

✨ 작업한 내용

image
  • z-index 오류 해결하였습니다!

@vercel
Copy link

vercel bot commented Oct 13, 2025

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

Project Deployment Preview Comments Updated (UTC)
frontend Ready Ready Preview Comment Oct 13, 2025 4:55am

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @aahreum, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 리스트 페이지에서 발생한 z-index 버그를 해결합니다. FloatingButtonContainerRollingPaperCard 컴포넌트의 z-index 값을 조정하여 UI 요소들이 올바른 순서로 렌더링되도록 하여, 컴포넌트들이 잘못 겹치는 문제를 방지합니다.

Highlights

  • FloatingButtonContainer 컴포넌트 경로 및 z-index 조정: FloatingButtonContainer 컴포넌트의 파일 경로가 src/components/common/button/FloatingButtonContainer.jsx로 변경되었으며, 해당 컴포넌트의 z-indexz-40으로 설정되어 다른 요소들 위에 올바르게 표시되도록 했습니다.
  • RollingPaperCard 컴포넌트 z-index 조정: RollingPaperCard 컴포넌트 내의 콘텐츠 및 반응 섹션의 z-indexz-40에서 z-1로 조정되어, 플로팅 버튼과의 겹침 문제를 해결했습니다.
  • FloatingButtonContainer import 경로 업데이트: 파일 경로 변경에 따라 List.jsx, Main.jsx, PostMessage.jsx 파일에서 FloatingButtonContainer 컴포넌트의 import 경로가 업데이트되었습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

z-index 충돌 버그를 잘 해결하셨습니다. FloatingButtonContainer의 z-index를 높이고, RollingPaperCard 내부 요소들의 z-index를 낮추어 의도한 대로 플로팅 버튼이 최상단에 보이도록 수정한 점이 좋습니다. 또한 FloatingButtonContainer 컴포넌트 파일을 button 디렉토리로 이동하여 프로젝트 구조를 개선한 점도 훌륭합니다. 코드 유지보수성을 높이기 위한 한 가지 제안을 드립니다. z-index 값으로 사용된 숫자들을 tailwind 설정 파일에 상수로 정의하여 사용하면 매직 넘버를 줄이고 코드의 가독성과 유지보수성을 향상시킬 수 있습니다. 자세한 내용은 각 파일에 남긴 주석을 확인해주세요.

const FloatingButtonContainer = ({ children }) => {
return (
<div className="fixed bottom-0 left-0 right-0 flex w-full justify-center bg-white p-6 md:static md:p-0">
<div className="fixed bottom-0 left-0 right-0 z-40 flex w-full justify-center bg-white p-6 md:static md:p-0">
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

z-40과 같은 매직 넘버는 코드의 가독성과 유지보수성을 저해할 수 있습니다. 이 값을 tailwind.config.js 파일의 theme.extend.zIndex에 의미 있는 이름(예: floating: 40)으로 추가하여 사용하는 것을 권장합니다. 이렇게 하면 z-floating과 같이 클래스명을 사용할 수 있어 값의 의도를 명확히 하고, 향후 z-index 계층 구조를 관리하기 용이해집니다.

{renderShape()}
{/* 콘텐츠 */}
<div className="z-40 flex flex-col items-start gap-3">
<div className="z-1 flex flex-col items-start gap-3">
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

여기서 사용된 z-1도 매직 넘버로 볼 수 있습니다. FloatingButtonContainer에 제안한 것과 마찬가지로, 이 값 또한 tailwind.config.jscard-content: 1과 같이 의미 있는 이름으로 정의하여 사용하는 것을 고려해 보세요. 이렇게 하면 z-card-content와 같이 사용할 수 있어 코드의 일관성과 가독성을 높일 수 있습니다. 이 제안은 80번째 줄에도 동일하게 적용됩니다.

Copy link

@eunji0124 eunji0124 left a comment

Choose a reason for hiding this comment

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

잘 적용되었습니다 확인했습니다

@aahreum aahreum merged commit 83cf06a into main Oct 13, 2025
2 of 4 checks passed
@aahreum aahreum deleted the fix/floating-button branch October 13, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

[🐛 Bug] 리스트 페이지 z-index 수정

2 participants