Skip to content
Snippets Groups Projects
Commit 3780f8d9 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

chore(news): fix image height

parent d0a8e4ed
No related branches found
No related tags found
3 merge requests!783V3.0.0,!741making onboarding-infos-covid-2 up to date,!713chore(news): fix image height
...@@ -15,12 +15,10 @@ ...@@ -15,12 +15,10 @@
/> />
</div> </div>
<div class="informations"> <div class="informations">
<div class="inline"> <div *ngIf="post.tags.length" class="inline">
<app-tag-item *ngFor="let tag of post.tags" [label]="tag.name" [color]="'red'" [size]="'small'" /> <app-tag-item *ngFor="let tag of post.tags" [label]="tag.name" [color]="'red'" [size]="'small'" />
</div> </div>
<h2 fxLayout="row" class="title"> <h2 class="title">{{ post.title }}</h2>
{{ post.title }}
</h2>
<div class="details"> <div class="details">
<div>Publié par : {{ post.author }}</div> <div>Publié par : {{ post.author }}</div>
<div> <div>
......
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
<div *ngIf="isLoading" class="loader" aria-busy="true"> <div *ngIf="isLoading" class="loader" aria-busy="true">
<img class="loader-gif" src="/assets/gif/loader_circle.gif" alt /> <img class="loader-gif" src="/assets/gif/loader_circle.gif" alt />
</div> </div>
<div *ngIf="!isLastPage && !isLoading" class="loadMore">
<app-button <app-button
class="loadMoreB" *ngIf="!isLastPage && !isLoading"
[variant]="'primaryBlack'" class="loadMore"
[label]="'Voir plus d\'actualités'" [variant]="'primaryBlack'"
[wide]="true" [label]="'Voir plus d\'actualités'"
(click)="loadMore()" [wide]="true"
/> (click)="loadMore()"
</div> />
</div> </div>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
@import 'breakpoint'; @import 'breakpoint';
.news { .news {
padding-top: 2rem; padding-block: 2rem;
} }
@mixin big-container { @mixin big-container {
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
} }
} }
::ng-deep .post .imageContainer { ::ng-deep .post .imageContainer {
.image { img {
height: 40vw; height: 40vw;
max-height: 320px; max-height: 320px;
@media #{$news-max} { @media #{$news-max} {
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
} }
@media #{$news-max} { @media #{$news-max} {
::ng-deep .post .imageContainer .image { ::ng-deep .post .imageContainer img {
height: unset; height: unset;
max-height: 320px; max-height: 320px;
} }
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
@mixin twin-container($start) { @mixin twin-container($start) {
grid-column: $start / span 6; grid-column: $start / span 6;
::ng-deep .post .imageContainer .image { ::ng-deep .post .imageContainer img {
height: 40vw; height: 40vw;
max-height: 250px; max-height: 250px;
} }
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
@mixin triple-container-first { @mixin triple-container-first {
grid-column: 1 / span 4; grid-column: 1 / span 4;
::ng-deep .post .imageContainer .image { ::ng-deep .post .imageContainer img {
height: 40vw; height: 40vw;
max-height: 180px; max-height: 180px;
} }
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
} }
@mixin triple-container { @mixin triple-container {
grid-column: span 4; grid-column: span 4;
::ng-deep .post .imageContainer .image { ::ng-deep .post .imageContainer img {
height: 40vw; height: 40vw;
max-height: 180px; max-height: 180px;
} }
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
} }
.loadMore { .loadMore {
margin: 16px auto 32px auto; margin-top: 16px;
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment