Add kebab menu
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<div>
|
<div class="library-header">
|
||||||
<div class="library-header">
|
|
||||||
<div class="library-header-dial">
|
<div class="library-header-dial">
|
||||||
<h3 class="library-name">{{ currentLibraryName() }}</h3>
|
<h3 class="library-name">{{ currentLibraryName() }}</h3>
|
||||||
<p-speedDial
|
<p-speedDial
|
||||||
@@ -8,7 +7,8 @@
|
|||||||
transitionDelay="80"
|
transitionDelay="80"
|
||||||
showIcon="pi pi-bars"
|
showIcon="pi pi-bars"
|
||||||
buttonClassName="p-button-text"
|
buttonClassName="p-button-text"
|
||||||
hideIcon="pi pi-times"/>
|
hideIcon="pi pi-times">
|
||||||
|
</p-speedDial>
|
||||||
</div>
|
</div>
|
||||||
<div class="library-header-right">
|
<div class="library-header-right">
|
||||||
<p-dropdown
|
<p-dropdown
|
||||||
@@ -19,29 +19,24 @@
|
|||||||
<p-button icon="pi pi-plus" [rounded]="true" [outlined]="true" severity="info"></p-button>
|
<p-button icon="pi pi-plus" [rounded]="true" [outlined]="true" severity="info"></p-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="content-container">
|
||||||
<div class="content-container">
|
|
||||||
<div class="card-container">
|
<div class="card-container">
|
||||||
<virtual-scroller class="virtual-scroller" #scroll [items]="currentLibraryBooks()">
|
<virtual-scroller class="virtual-scroller" #scroll [items]="currentLibraryBooks()">
|
||||||
<div class="grid" #container>
|
<div class="grid" #container>
|
||||||
<div class="virtual-scroller-item" *ngFor="let book of scroll.viewPortItems">
|
<div class="virtual-scroller-item" *ngFor="let book of scroll.viewPortItems">
|
||||||
<!--<img [lazyLoad]="coverImageSrc(book.id)" class="book-cover placeholder"/>-->
|
<img [src]="coverImageSrc(book.id)" class="book-cover placeholder" alt="Cover of {{ book.metadata.title }}" loading="lazy"/>
|
||||||
<img [src]="coverImageSrc(book.id)" class="book-cover placeholder" alt="Cover of {{ book.metadata.title }}"
|
|
||||||
loading="lazy"/>
|
|
||||||
<div class="book-info">
|
<div class="book-info">
|
||||||
|
<div class="book-title-container">
|
||||||
<h4 class="book-title">{{ book.metadata.title }}</h4>
|
<h4 class="book-title">{{ book.metadata.title }}</h4>
|
||||||
|
<p-button [text]="true" [rounded]="true" icon="pi pi-ellipsis-v" class="kebab-menu-btn"></p-button>
|
||||||
|
</div>
|
||||||
<p-button [rounded]="true" icon="pi pi-eye" class="view-btn" (click)="readBook(book)"></p-button>
|
<p-button [rounded]="true" icon="pi pi-eye" class="view-btn" (click)="readBook(book)"></p-button>
|
||||||
<p-button [rounded]="true" icon="pi pi-info" class="read-btn"
|
<p-button [rounded]="true" icon="pi pi-info" class="read-btn" (click)="openBookInfo(book.id, book.libraryId)"></p-button>
|
||||||
(click)="openBookInfo(book.id, book.libraryId)"></p-button>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</virtual-scroller>
|
</virtual-scroller>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
.book-title-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
.library-header {
|
.library-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -38,9 +45,9 @@
|
|||||||
|
|
||||||
.virtual-scroller-item {
|
.virtual-scroller-item {
|
||||||
background-color: var(--surface-card);
|
background-color: var(--surface-card);
|
||||||
height: 240px;
|
height: 243px;
|
||||||
width: 150px;
|
width: 150px;
|
||||||
border-radius: 8px;
|
border-radius: 8px 8px 0 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,12 +72,12 @@
|
|||||||
.book-title {
|
.book-title {
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
margin-bottom: 5px;
|
margin-bottom: 6px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 6px 6px 5px;
|
padding: 6px 6px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.book-authors {
|
.book-authors {
|
||||||
|
|||||||
Reference in New Issue
Block a user