diff --git a/.gitignore b/.gitignore index 6955b91..781bf4f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ /out-tsc /bazel-out /frontend/src/assets/images/* +!/frontend/src/assets/images/default +!/frontend/src/assets/images/logo3.png # Node /node_modules diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index a2613fa..a176f06 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -32,7 +32,7 @@ import { DateFormatPipe } from './core/pipes/date-format/date-format.pipe'; import { SharedModule } from './shared/shared.module'; import { ListInfoComponent } from './features/list-info/list-info.component'; import { ListEntryCardComponent } from './features/cards/list-entry-card/list-entry-card.component'; -import { CollectionEntryListComponent } from './features/lists/collection-entry-list/collection-entry-list.component'; +import { UserCollectionEntryGridComponent } from './features/lists/collection-entry-list/user-collection-entry-grid.component'; import { DatePipe } from '@angular/common'; import { DragDropModule } from '@angular/cdk/drag-drop'; @@ -56,7 +56,7 @@ import { DragDropModule } from '@angular/cdk/drag-drop'; DateFormatPipe, ListInfoComponent, ListEntryCardComponent, - CollectionEntryListComponent, + UserCollectionEntryGridComponent, ], imports: [ CoreModule, diff --git a/frontend/src/app/features/lists/dynamic-entry-list/dynamic-entry-list.component.css b/frontend/src/app/features/lists/dynamic-entry-list/dynamic-entry-list.component.css index c906245..535b214 100644 --- a/frontend/src/app/features/lists/dynamic-entry-list/dynamic-entry-list.component.css +++ b/frontend/src/app/features/lists/dynamic-entry-list/dynamic-entry-list.component.css @@ -1,12 +1,8 @@ - .movies-container { display: grid; - grid-template-columns: repeat( - auto-fill, - minmax(160px, 2fr) - ); /* Creates a responsive grid */ - gap: 20px; /* Space between items */ - /* padding: 20px;Padding around the grid */ + grid-template-columns: repeat(auto-fill, + minmax(160px, 2fr)); + gap: 20px; } .pagination-container { diff --git a/frontend/src/app/features/modals/list-selection-modal/list-selection-modal.component.ts b/frontend/src/app/features/modals/list-selection-modal/list-selection-modal.component.ts index f174c2d..854b5bf 100644 --- a/frontend/src/app/features/modals/list-selection-modal/list-selection-modal.component.ts +++ b/frontend/src/app/features/modals/list-selection-modal/list-selection-modal.component.ts @@ -137,7 +137,7 @@ export class ListSelectionModalComponent implements OnInit { }); } else { console.log(`Removing Entry ${this.entryId} from list: ${list.name}`); - this.listService.removeEntryFromList(list.id, this.entryId).subscribe({ + this.listService.removeEntryFromList(list.id.toString(), this.entryId).subscribe({ next: (_) => { this.showNotification( 'Entry Removed', diff --git a/package-lock.json b/package-lock.json index 1a705c8..74712b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "@angular/animations": "^17.3.0", + "@angular/cdk": "^17.3.3", "@angular/common": "^17.3.0", "@angular/compiler": "^17.3.0", "@angular/core": "^17.3.0", @@ -337,10 +338,9 @@ } }, "node_modules/@angular/cdk": { - "version": "17.3.2", - "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-17.3.2.tgz", - "integrity": "sha512-mC2U7aoIf7RSpGgIwVyfQEbaPDDX59plQt88KeTz15wjF8vosLt2DG0rZEoV8Mq14YS47J+jI76q/LJfd6/GCw==", - "peer": true, + "version": "17.3.3", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-17.3.3.tgz", + "integrity": "sha512-hfS9pwaNE6CTZqP3FBh9tZPbuf//bDqZ5IpMzscfDFrwX8ycxBiI3znH/rFSf9l1rL0OQGoqWWNVfJCT+RrukA==", "dependencies": { "tslib": "^2.3.0" }, diff --git a/package.json b/package.json index 433b70e..cd7af52 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "private": true, "dependencies": { "@angular/animations": "^17.3.0", + "@angular/cdk": "^17.3.3", "@angular/common": "^17.3.0", "@angular/compiler": "^17.3.0", "@angular/core": "^17.3.0",