-
- {btnActive === 'features' ?
: <>>}
- {btnActive === 'rewiews' ? (
-
- ) : (
- <>>
- )}
+
+
+
+
+ {advert.gallery.map(imgUrl => (
+ -
+
+
+ ))}
+
+
+ {advert.description}
+
+
+
+
+
+
+
+
+ {btnActive === 'features' ? (
+
+ ) : (
+ <>>
+ )}
+ {btnActive === 'rewiews' ? (
+
+ ) : (
+ <>>
+ )}
+
+
+
+
-
diff --git a/src/components/Modal/ModalAdvert.module.css b/src/components/Modal/ModalAdvert.module.css
index 82fd3ca..b91f937 100644
--- a/src/components/Modal/ModalAdvert.module.css
+++ b/src/components/Modal/ModalAdvert.module.css
@@ -11,6 +11,8 @@
height: 100vh;
background: var(--backdrop-bg-color);
+
+ overflow-y: scroll;
}
.modal_window {
@@ -20,14 +22,12 @@
transform: translate(-50%, -50%);
width: 982px;
- max-height: 720px;
- height: auto;
- padding: 40px;
+ height: 845px;
+
+ padding: 40px 16px 40px 40px;
border-radius: 20px;
background-color: var(--white);
-
- overflow: hidden scroll;
}
.modal_close_btn {
@@ -57,11 +57,7 @@
}
.advert_info {
- display: flex;
- flex-direction: column;
- gap: 24px;
-
- margin-bottom: 44px;
+ margin-bottom: 24px;
}
.advert_name {
@@ -72,6 +68,10 @@
line-height: 1.25;
}
+.advert_subtitle {
+ margin-bottom: 16px;
+}
+
.advert_price {
composes: advert_name;
@@ -79,8 +79,45 @@
margin-bottom: 0;
}
-.scroll_info {
- overflow: hidden scroll;
+.advertItem_descr {
+ margin-top: 24px;
+ margin-bottom: 44px;
+}
+
+.scrollbar_container {
+ position: relative;
+ display: flex;
+ justify-content: flex-start;
+
+ width: 100%;
+ height: 624px;
+
+ overflow: hidden;
+}
+
+.list_thumb {
+ position: relative;
+
+ width: calc(100% + 24px);
+ height: 100%;
+
+ overflow-y: scroll;
+}
+
+.content_margin_right {
+ margin-right: 16px;
+}
+
+.list_thumb::-webkit-scrollbar {
+ width: 8px;
+}
+
+.list_thumb::-webkit-scrollbar-thumb {
+ width: 8px;
+ height: 264px;
+
+ border-radius: 7px;
+ background: var(--scroll-color);
}
.advert_details_btns {