Remove unwanted black bar at bottom of EPUB viewer after loading

This commit is contained in:
adityachandelgit
2025-05-18 12:40:09 -06:00
committed by Aditya Chandel
parent 1309c0f6d7
commit b7becc50d9
2 changed files with 16 additions and 2 deletions
@@ -1,5 +1,7 @@
<div #epubContainer class="epub-viewer-container">
<p-progressSpinner *ngIf="isLoading"></p-progressSpinner>
<div *ngIf="isLoading" class="spinner-wrapper">
<p-progressSpinner></p-progressSpinner>
</div>
<div *ngIf="!isLoading">
<div class="epub-header">
@@ -15,8 +15,8 @@
}
#epubContainer {
width: 100%;
height: 100%;
width: 100%;
overflow: hidden;
}
@@ -124,3 +124,15 @@
box-shadow: 0 0 4px #bbb;
}
}
.spinner-wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 999;
}