Skip to content

Commit

Permalink
Fix. css 충돌 해결
Browse files Browse the repository at this point in the history
map-container 충돌
-> .module.css 사용해야함

.
  • Loading branch information
Miensoap committed Jun 23, 2024
1 parent ed3fea9 commit 8de3fde
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
3 changes: 2 additions & 1 deletion FE/src/pages/AccommodationDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import HostInfo from "../components/accommodation_detail/HostInfo";
import BookingInfo from "../components/accommodation_detail/BookingInfo";
import Map from "../components/list/Map";
import "../styles/AccommodationDetail.css";
import styles from "../styles/Detail.module.css";

const AccommodationDetail = () => {
const { state } = useLocation();
Expand Down Expand Up @@ -79,7 +80,7 @@ const AccommodationDetail = () => {
checkOut={checkOut}
headCount={headCount}
/>
<div className="map-container">
<div className={styles.mapContainer}>
<Map
currentPosition={currentPosition}
mapLevel={mapLevel}
Expand Down
13 changes: 0 additions & 13 deletions FE/src/styles/AccommodationDetail.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,3 @@
.booking-info button:hover {
background-color: #e04850;
}

.map-container {
display: flex;
justify-content: center;
align-items: center;
height: 400px;
width: 50%;
max-width: 450px;
padding: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
border-radius: 20%;
margin: 0 auto;
}
12 changes: 12 additions & 0 deletions FE/src/styles/Detail.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.mapContainer {
display: flex;
justify-content: center;
align-items: center;
height: 400px;
width: 50%;
max-width: 450px;
padding: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
border-radius: 20%;
margin: 0 auto;
}

0 comments on commit 8de3fde

Please sign in to comment.