Skip to content

Commit

Permalink
update generic preview styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tomashanacek committed Feb 1, 2024
1 parent 7383f61 commit 8089885
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/generic-preview/generic-preview.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ humanType }}
</div>
</div>
<div *ngIf="isExplicit">
<div *ngIf="isExplicit" class="h-100">
<div class="explicit mx-auto">
<ion-icon name="eye-off-outline"></ion-icon>
<div class="note">Explicit content</div>
Expand Down
10 changes: 7 additions & 3 deletions frontend/src/app/generic-preview/generic-preview.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@ audio {
}

.explicit {
width: 200px;
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.3);
text-align: center;
text-transform: uppercase;
padding-top: 80px;
border-radius: 10px;
font-size: 22px;
color: #999999;

.note {
font-size: 12px;
margin-top: 10px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
>
<div class="content">
<app-generic-preview [mime]="item.mime" [contentPath]="item.content_path"
[isExplicit]="item.is_explicit"></app-generic-preview>
[isExplicit]="item.is_explicit" class="w-100 h-100"></app-generic-preview>
</div>
<h4 class="name">{{ item.name }}</h4>
<div class="detail">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<ion-grid>
<ion-row>
<ion-col size-lg="6" size-xs="12">
<div class="text-center">
<div class="text-center h-100">
<app-generic-preview [mime]="inscription.mime" [contentPath]="inscription.content_path"
[isExplicit]="inscription.is_explicit"></app-generic-preview>
</div>
Expand Down

0 comments on commit 8089885

Please sign in to comment.