Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
Fix for add to collection visibility issue (#990)
Robbie Davisbfb2dbbd4ab0
diff --git a/UI/Web/src/app/_services/action.service.ts b/UI/Web/src/app/_services/action.service.tsindex 66615388c..992265971 100644--- a/UI/Web/src/app/_services/action.service.ts+++ b/UI/Web/src/app/_services/action.service.ts@@ -375,7 +375,7 @@ export class ActionService implements OnDestroy {*/addMultipleSeriesToCollectionTag(series: Array<Series>, callback?: VoidActionCallback) {if (this.collectionModalRef != null) { return; }- this.collectionModalRef = this.modalService.open(BulkAddToCollectionComponent, { scrollable: true, size: 'md' });+ this.collectionModalRef = this.modalService.open(BulkAddToCollectionComponent, { scrollable: true, size: 'md', windowClass: 'collection' });this.collectionModalRef.componentInstance.seriesIds = series.map(v => v.id);this.collectionModalRef.componentInstance.title = 'New Collection';diff --git a/UI/Web/src/app/cards/_modals/bulk-add-to-collection/bulk-add-to-collection.component.scss b/UI/Web/src/app/cards/_modals/bulk-add-to-collection/bulk-add-to-collection.component.scssindex 91847160a..1cfe40c07 100644--- a/UI/Web/src/app/cards/_modals/bulk-add-to-collection/bulk-add-to-collection.component.scss+++ b/UI/Web/src/app/cards/_modals/bulk-add-to-collection/bulk-add-to-collection.component.scss@@ -4,4 +4,17 @@.clickable:hover, .clickable:focus {background-color: lightgreen;-}\ No newline at end of file+}++.collection {+ overflow: auto;+ .modal-body {+ height: calc(100vh - 235px);+ min-height: 150px;+ .list-group {+ overflow: auto;+ height: calc(100vh - 355px);+ min-height: 32px;+ }+ }+}diff --git a/UI/Web/src/app/cards/_modals/bulk-add-to-collection/bulk-add-to-collection.component.ts b/UI/Web/src/app/cards/_modals/bulk-add-to-collection/bulk-add-to-collection.component.tsindex 13641550b..be28e41a3 100644--- a/UI/Web/src/app/cards/_modals/bulk-add-to-collection/bulk-add-to-collection.component.ts+++ b/UI/Web/src/app/cards/_modals/bulk-add-to-collection/bulk-add-to-collection.component.ts@@ -1,4 +1,4 @@-import { Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core';+import { Component, ElementRef, Input, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';import { FormGroup, FormControl } from '@angular/forms';import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';import { ToastrService } from 'ngx-toastr';@@ -9,6 +9,7 @@ import { CollectionTagService } from 'src/app/_services/collection-tag.service';@Component({selector: 'app-bulk-add-to-collection',templateUrl: './bulk-add-to-collection.component.html',+ encapsulation: ViewEncapsulation.None, // This is needed as per the bootstrap modal documentation to get styles to work.styleUrls: ['./bulk-add-to-collection.component.scss']})export class BulkAddToCollectionComponent implements OnInit {