master
Boris Voropaev 2023-12-14 14:38:47 +03:00
parent 3ec0b079ea
commit 0c75d0ce98
8 changed files with 32 additions and 10 deletions

View File

@ -1,8 +1,9 @@
<div *ngIf="editMode" class="add">
<a (click)="add()">
<div class="toggle prime" [class.active]="ddVisible" (click)="add()">
<div class="two-lines"></div>
<ico ico="add_circle_24"></ico>
Добавить публикацию
</a>
<div class="two-lines"></div>
</div>
</div>
<pagination [listId]="listId"></pagination>
<div class="items">

View File

@ -13,4 +13,7 @@
</ng-template>
</swiper>
</div>
<button class="close" *ngIf="closing" (click)="close()">
<ico></ico>
</button>
</div>

View File

@ -32,6 +32,7 @@
height: 20%;
flex-shrink: 0;
padding: 10px 0 0;
cursor: w-resize;
swiper {
height: 100%;
img {object-fit: cover;}
@ -45,6 +46,19 @@
.gallery-thumbs .swiper-slide-active {
opacity: 1;
}
.close{
position: absolute;
right: 30px;
top: 30px;
z-index: 1001;
background-color: #fff;
height: 40px;
width: 40px;
border: none;
border-radius: 20px;
padding: 0;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.25);
}
}

View File

@ -1,6 +1,6 @@
$bull: 15px;
$bull: 14px;
$offset: 2px;
$track: 20px;
$track: 22px;
div{
border: 1px solid var(--second);

View File

@ -89,7 +89,8 @@ export class JumbotronComponent {
}
get editable(){
return this.authService.privileges?.admin|| this.authService.privileges?.editor;
console.log(this.currentPage)
return this.currentPage&&(this.authService.privileges?.admin|| this.authService.privileges?.editor);
}
get editMode(){

View File

@ -273,6 +273,12 @@ users-list{
border-radius: 100px;
background-color: var(--prime);
color: #ffffff;
overflow: hidden;
img{
object-fit: cover;
width: 100%;
height: 100%;
}
}
}
.middle{

View File

@ -85,9 +85,6 @@ button, .btn, a.btn {
&.edit {
background-image: url('~src/assets/images/icons/edit_24dp.svg');
}
&.close {
background-image: url('~src/assets/images/icons/close_24dp.svg');
}
&.close-blue {
background-image: url('~src/assets/images/icons/close_blue_24dp.svg');
};

View File

@ -55,7 +55,7 @@ html-section {
}
}
add-section{
add-section, publications-list{
.add{
position: relative;
margin: 24px 0;