From 7f456770cb1ca62ce59d8df2199601f96e9ae9f8 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Tue, 3 May 2022 10:11:50 -0500 Subject: [PATCH] Misc Cleanup (#1242) * Updated the wording for Read in incognito, as 'in' was redundant * Added icons to the middle tabs for a mobile compaitible view * Fixed up the code for side nav to make the display much cleaner * Added icons to tabs * Styling polishing - Making pagination spacing uniform - Fixing onresize event - Making cards center justification on mobile only - fixing vertical alignment for companion bar icons - Fixing Issue where drawer buttons would sometimes not be visible. - Fixed vertical alignment issue with filter button * Fixing orientation change event * added fixed position to drawer - fixes styling issues * added total pages to series modal * Downgraded ExCSS package to a version that doesn't die on @page query selectors. * Cleaned up some code and wrote some bug markers in typeahead * Removed some padding top on companion bar * Aligned the top margin for card detail layout and series detail * Use a temp close button on book reader until new code is ready. Co-authored-by: Robbie Davis --- API/API.csproj | 2 +- .../app/_services/action-factory.service.ts | 4 +- UI/Web/src/app/app.component.html | 2 +- UI/Web/src/app/app.component.ts | 6 +- UI/Web/src/app/app.module.ts | 2 +- .../book-reader/book-reader.component.html | 3 +- .../edit-series-modal.component.html | 2 + .../card-detail-layout.component.html | 4 +- .../library-detail.component.html | 7 +- .../library-detail.component.scss | 2 +- .../library-detail.component.ts | 6 +- .../series-detail.component.html | 8 +- .../app/shared/drawer/drawer.component.html | 2 +- .../side-nav-companion-bar.component.html | 33 ++++---- .../src/app/typeahead/typeahead.component.ts | 75 ++++++++----------- UI/Web/src/styles.scss | 4 +- 16 files changed, 79 insertions(+), 83 deletions(-) diff --git a/API/API.csproj b/API/API.csproj index f3389e2d7..b844745c2 100644 --- a/API/API.csproj +++ b/API/API.csproj @@ -39,7 +39,7 @@ - + diff --git a/UI/Web/src/app/_services/action-factory.service.ts b/UI/Web/src/app/_services/action-factory.service.ts index 1294b781c..52c208859 100644 --- a/UI/Web/src/app/_services/action-factory.service.ts +++ b/UI/Web/src/app/_services/action-factory.service.ts @@ -250,7 +250,7 @@ export class ActionFactoryService { }, { action: Action.IncognitoRead, - title: 'Read in Incognito', + title: 'Read Incognito', callback: this.dummyCallback, requiresAdmin: false }, @@ -277,7 +277,7 @@ export class ActionFactoryService { }, { action: Action.IncognitoRead, - title: 'Read in Incognito', + title: 'Read Incognito', callback: this.dummyCallback, requiresAdmin: false }, diff --git a/UI/Web/src/app/app.component.html b/UI/Web/src/app/app.component.html index df9ff69cb..6352a3686 100644 --- a/UI/Web/src/app/app.component.html +++ b/UI/Web/src/app/app.component.html @@ -3,7 +3,7 @@
-
+
diff --git a/UI/Web/src/app/app.component.ts b/UI/Web/src/app/app.component.ts index 734c40c1b..21e0f8171 100644 --- a/UI/Web/src/app/app.component.ts +++ b/UI/Web/src/app/app.component.ts @@ -35,12 +35,12 @@ export class AppComponent implements OnInit { }); } - @HostListener('resize') - onResize() { + @HostListener('window:resize', ['$event']) + onResize(){ this.setDocHeight(); } - @HostListener('orientationchange') + @HostListener('window:orientationchange', ['$event']) onOrientationChange() { this.setDocHeight(); } diff --git a/UI/Web/src/app/app.module.ts b/UI/Web/src/app/app.module.ts index a130e85e1..b7c96c26f 100644 --- a/UI/Web/src/app/app.module.ts +++ b/UI/Web/src/app/app.module.ts @@ -15,10 +15,10 @@ import { NavModule } from './nav/nav.module'; + @NgModule({ declarations: [ AppComponent, - ], imports: [ HttpClientModule, diff --git a/UI/Web/src/app/book-reader/book-reader/book-reader.component.html b/UI/Web/src/app/book-reader/book-reader/book-reader.component.html index 8bdad3f2c..701aa46a5 100644 --- a/UI/Web/src/app/book-reader/book-reader/book-reader.component.html +++ b/UI/Web/src/app/book-reader/book-reader/book-reader.component.html @@ -5,7 +5,8 @@

Book Settings - + +

diff --git a/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html b/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html index 63d9dce7b..5cb8d68d9 100644 --- a/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html +++ b/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html @@ -352,6 +352,8 @@
Max Items: {{metadata.maxCount}}
Total Items: {{metadata.totalCount}}
Publication Status: {{metadata.publicationStatus | publicationStatus}}
+
Total Pages: {{series.pages}}
+

Volumes

diff --git a/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.html b/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.html index bf257e2d0..8a4565f53 100644 --- a/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.html +++ b/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.html @@ -35,8 +35,8 @@ -
-
+
+
diff --git a/UI/Web/src/app/library-detail/library-detail.component.html b/UI/Web/src/app/library-detail/library-detail.component.html index 2b3019d18..2d21e5ee6 100644 --- a/UI/Web/src/app/library-detail/library-detail.component.html +++ b/UI/Web/src/app/library-detail/library-detail.component.html @@ -7,7 +7,12 @@