A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Refactor popover css to single file
Michael Shamoon31cd32406cf1
diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scssindex cf4e876d4..c49de93b5 100644--- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss+++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss@@ -37,26 +37,3 @@.doc-img-background-selected {background-color: $primaryFaded;}--::ng-deep .popover {- max-width: 40rem;-- .preview {- min-width: 25rem;- min-height: 15rem;- max-height: 35rem;- overflow-y: scroll;- }-- .spinner-border {- position: absolute;- top: 4rem;- left: calc(50% - 0.5rem);- z-index: 0;- }-}--.popover-hidden ::ng-deep .popover {- opacity: 0;- pointer-events: none;-}diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.tsindex d5168476b..5ae24493b 100644--- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts+++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts@@ -8,7 +8,7 @@ import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';@Component({selector: 'app-document-card-large',templateUrl: './document-card-large.component.html',- styleUrls: ['./document-card-large.component.scss']+ styleUrls: ['./document-card-large.component.scss', '../popover-preview/popover-preview.scss']})export class DocumentCardLargeComponent implements OnInit {diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scssindex c8f4a17c9..cbe8fa6f6 100644--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss@@ -34,26 +34,3 @@.doc-img-background-selected {background-color: $primaryFaded;}--::ng-deep .popover {- max-width: 40rem;-- .preview {- min-width: 25rem;- min-height: 15rem;- max-height: 35rem;- overflow-y: scroll;- }-- .spinner-border {- position: absolute;- top: 4rem;- left: calc(50% - 0.5rem);- z-index: 0;- }-}--.popover-hidden ::ng-deep .popover {- opacity: 0;- pointer-events: none;-}diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.tsindex cd88143e1..3e03f5e62 100644--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts@@ -8,7 +8,7 @@ import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';@Component({selector: 'app-document-card-small',templateUrl: './document-card-small.component.html',- styleUrls: ['./document-card-small.component.scss']+ styleUrls: ['./document-card-small.component.scss', '../popover-preview/popover-preview.scss']})export class DocumentCardSmallComponent implements OnInit {diff --git a/src-ui/src/app/components/document-list/popover-preview/popover-preview.scss b/src-ui/src/app/components/document-list/popover-preview/popover-preview.scssnew file mode 100644index 000000000..b88c308d2--- /dev/null+++ b/src-ui/src/app/components/document-list/popover-preview/popover-preview.scss@@ -0,0 +1,22 @@+::ng-deep .popover {+ max-width: 40rem;++ .preview {+ min-width: 25rem;+ min-height: 15rem;+ max-height: 35rem;+ overflow-y: scroll;+ }++ .spinner-border {+ position: absolute;+ top: 4rem;+ left: calc(50% - 0.5rem);+ z-index: 0;+ }+}++ ::ng-deep .popover-hidden .popover {+ opacity: 0;+ pointer-events: none;+}