Skip to content

Commit

Permalink
Fix some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
FireSpirit171 committed Dec 16, 2024
1 parent a299978 commit 6f30089
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/AdCard/AdCard.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<button class='housing-card__like-button js-like-button'>
<svg
aria-label='heart'
class='housing-card__like-button__heart js-fill-heart {{#if isFavourite}} already-liked {{/if}}'
class='housing-card__like-button__heart js-fill-heart {{#if isFavorite}} already-liked {{/if}}'
aria-hidden='true'
width='16'
height='16'
Expand Down
14 changes: 9 additions & 5 deletions src/components/ShortAdCard/ShortAdCard.sass
Original file line number Diff line number Diff line change
Expand Up @@ -60,42 +60,46 @@
display: flex
flex-direction: row
gap: 3px
padding-top: 10px

&__address
font-size: 18px

&__description
font-size: 18px
padding-top: 10px
text-align: justify
display: -webkit-box
-webkit-line-clamp: 4
-webkit-line-clamp: 3
-webkit-box-orient: vertical
overflow: hidden


&__additional-info
padding-top: 10px
display: flex
flex-direction: column
justify-content: space-evenly
height: 100px
height: 80px

&__row
display: flex
flex-direction: row

&__title
width: 40%
width: 60%
font-size: 18px
font-weight: bold

&__value
width: 60%
width: 40%
font-size: 18px

&__button-container
display: flex
justify-content: center
gap: 20px
padding-top: 10px
gap: 10px

&__more-button
@include mixins.button
Expand Down
2 changes: 1 addition & 1 deletion src/pages/AdPage/AdPage.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
</div>
<div class='advert-apps__info'>
<p class='advert-apps__info__title'>Понравилось</p>
<p class='advert-apps__info__value'>{{LikesCount}}</p>
<p class='advert-apps__info__value'>{{likesCount}}</p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/AdPage/AdPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$secondary-card-size: 64px;

.ad-page {
max-width: 70%;
max-width: 80%;
margin: 50px auto;
display: grid;
grid-template-areas: 'main aside';
Expand Down
17 changes: 14 additions & 3 deletions src/pages/FavouritePage/FavouritePage.sass
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
margin-bottom: 16px
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1)
transition: transform 0.2s ease-in-out
min-width: min-content
overflow: hidden

&:hover
transform: scale(1.02)
Expand All @@ -51,16 +51,20 @@
flex: 1
display: flex
flex-direction: column
justify-content: space-between
gap: 10px
overflow: hidden
text-overflow: ellipsis
-webkit-box-orient: vertical
word-wrap: break-word

&__title
font-size: 18px
font-weight: bold
margin-bottom: 8px
cursor: pointer
width: max-content
display: flex
flex-wrap: wrap
word-wrap: break-word

&__options
display: flex
Expand All @@ -76,6 +80,13 @@
font-size: 16px
color: #666
margin-bottom: 12px
max-height: 200px
overflow: hidden
text-overflow: ellipsis
display: -webkit-box
-webkit-line-clamp: 3
-webkit-box-orient: vertical
word-wrap: break-word

span
display: block
Expand Down
1 change: 0 additions & 1 deletion src/pages/FavouritePage/FavouritePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { AdvertData } from "../../modules/Types";

Check failure on line 3 in src/pages/FavouritePage/FavouritePage.ts

View workflow job for this annotation

GitHub Actions / Run linters

Strings must use singlequote
import ApiClient from "../../modules/ApiClient";

Check failure on line 4 in src/pages/FavouritePage/FavouritePage.ts

View workflow job for this annotation

GitHub Actions / Run linters

Strings must use singlequote
import MapPage from "../MapPage/MapPage";

import router from "../../modules/Router";

Check failure on line 6 in src/pages/FavouritePage/FavouritePage.ts

View workflow job for this annotation

GitHub Actions / Run linters

Strings must use singlequote

Expand Down
4 changes: 2 additions & 2 deletions src/pages/MapPage/MapPage.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.map-page
display: grid
grid-template-areas: 'people map'
grid-template-columns: 25% 1fr
grid-template-columns: 30% 1fr
overflow-x: hidden
overflow-y: hidden

Expand All @@ -10,7 +10,7 @@
position: absolute
background-color: #c6c6c6
height: calc(100vh - 100px)
width: 25%
width: 30%
overflow-y: scroll

padding-top: 20px
Expand Down

0 comments on commit 6f30089

Please sign in to comment.