More layout fixes for bottom bar
This commit is contained in:
@@ -3,10 +3,10 @@
|
|||||||
<div class="flex justify-between items-center p-2 rounded-t-xl mb-4 bg-[var(--card-background)]">
|
<div class="flex justify-between items-center p-2 rounded-t-xl mb-4 bg-[var(--card-background)]">
|
||||||
<div class="flex items-center pl-2">
|
<div class="flex items-center pl-2">
|
||||||
<ng-container *ngIf="entityType$ | async as entityType">
|
<ng-container *ngIf="entityType$ | async as entityType">
|
||||||
<p *ngIf="entityType !== EntityType.ALL_BOOKS" class="text-2xl">
|
<p *ngIf="entityType !== EntityType.ALL_BOOKS" class="text-2xl whitespace-nowrap overflow-hidden text-ellipsis">
|
||||||
{{ entityType }}: {{ (entity$ | async)?.name }}
|
{{ entityType }}: {{ (entity$ | async)?.name }}
|
||||||
</p>
|
</p>
|
||||||
<p *ngIf="entityType === EntityType.ALL_BOOKS" class="text-2xl">
|
<p *ngIf="entityType === EntityType.ALL_BOOKS" class="text-2xl whitespace-nowrap overflow-hidden text-ellipsis">
|
||||||
All Books
|
All Books
|
||||||
</p>
|
</p>
|
||||||
<div *ngIf="entityType !== EntityType.ALL_BOOKS">
|
<div *ngIf="entityType !== EntityType.ALL_BOOKS">
|
||||||
@@ -121,24 +121,21 @@
|
|||||||
<div class="flex justify-between gap-8">
|
<div class="flex justify-between gap-8">
|
||||||
<ng-container *ngIf="entityType$ | async as entityType">
|
<ng-container *ngIf="entityType$ | async as entityType">
|
||||||
<p-button *ngIf="entityType === EntityType.LIBRARY || entityType === EntityType.ALL_BOOKS"
|
<p-button *ngIf="entityType === EntityType.LIBRARY || entityType === EntityType.ALL_BOOKS"
|
||||||
icon="pi pi-book"
|
|
||||||
label="Assign Shelf"
|
label="Assign Shelf"
|
||||||
severity="info"
|
severity="info"
|
||||||
(onClick)="openShelfAssigner()">
|
(onClick)="openShelfAssigner()">
|
||||||
</p-button>
|
</p-button>
|
||||||
<p-button *ngIf="entityType === EntityType.SHELF"
|
<p-button *ngIf="entityType === EntityType.SHELF"
|
||||||
icon="pi pi-minus-circle"
|
|
||||||
label="Unshelf"
|
label="Unshelf"
|
||||||
severity="info"
|
severity="info"
|
||||||
(click)="unshelfBooks()">
|
(click)="unshelfBooks()">
|
||||||
</p-button>
|
</p-button>
|
||||||
<p-button
|
<p-button
|
||||||
icon="pi pi-database"
|
|
||||||
label="Refresh Metadata"
|
label="Refresh Metadata"
|
||||||
severity="info"
|
severity="info"
|
||||||
(click)="updateMetadata()">
|
(click)="updateMetadata()">
|
||||||
</p-button>
|
</p-button>
|
||||||
<p-button icon="pi pi-times"
|
<p-button
|
||||||
label="Deselect All"
|
label="Deselect All"
|
||||||
severity="warn"
|
severity="warn"
|
||||||
(click)="deselectAllBooks()">
|
(click)="deselectAllBooks()">
|
||||||
|
|||||||
@@ -38,32 +38,12 @@
|
|||||||
right: 20%;
|
right: 20%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 1.1rem;
|
padding: 1rem 0.5rem 0.5rem;
|
||||||
box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
|
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
border-radius: 10px 10px 0 0;
|
border-radius: 10px 10px 0 0;
|
||||||
}
|
|
||||||
|
|
||||||
.book-browser-footer::before {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background-color: rgba(0, 0, 0, 0.85);
|
|
||||||
z-index: -1;
|
|
||||||
border-radius: 10px 10px 0 0;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||||
border-width: 1px 1px 0px 1px;
|
border-width: 1px 1px 0px 1px;
|
||||||
}
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
|
||||||
.book-browser-footer > * {
|
|
||||||
pointer-events: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.book-browser-footer:hover::before {
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar-items {
|
.topbar-items {
|
||||||
@@ -77,8 +57,6 @@
|
|||||||
li {
|
li {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar-item {
|
.topbar-item {
|
||||||
@@ -97,6 +75,7 @@
|
|||||||
outline-color: transparent;
|
outline-color: transparent;
|
||||||
background-color: var(--card-background);
|
background-color: var(--card-background);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: var(--primary-color);
|
border-color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user