Skip to content
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

Fix: 모바일 뷰에서 속성 선택부분이 제대로 보이지 않는 문제 해결 #67

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/plate/FilterPlates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const FilterPlates = () => {
return (
<div className={styles.wrapper}>
<AnimatePresence>
{isOpen && (
{isOpen ? (
<motion.div
initial="closed"
animate="open"
Expand All @@ -62,6 +62,8 @@ const FilterPlates = () => {
</motion.div>
</div>
</motion.div>
) : (
<div></div>
)}
</AnimatePresence>
<PlateHideButton isOpen={isOpen} setIsOpen={setIsOpen} />
Expand Down
12 changes: 2 additions & 10 deletions src/components/plate/Plate.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
.wrapper {
position: relative;
height: 100%;
margin-top: -30px;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
margin-bottom: 60px;

@include mobile {
height: auto;
}
gap: 12px;
padding-bottom: 60px;

.container {
height: 100%;
Expand Down Expand Up @@ -110,14 +106,10 @@

//PlateHideButton
.hide_button {
position: absolute;
top: unset;
bottom: -25px;
cursor: pointer;
outline: none;
background-color: transparent;
border-bottom: 0px;
justify-self: center;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 24px solid #000;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dex/Dex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import FilterPlates from '@/components/plate/FilterPlates';

const Dex = () => {
return (
<section>
<section style={{ marginTop: 0 }}>
<FilterPlates />
<PokemonDex />
</section>
Expand Down
Loading