diff --git a/apps/picsa-tools/resources-tool/src/app/components/resource-item/resource-item.component.scss b/apps/picsa-tools/resources-tool/src/app/components/resource-item/resource-item.component.scss index b20ad7e70..bd0332929 100644 --- a/apps/picsa-tools/resources-tool/src/app/components/resource-item/resource-item.component.scss +++ b/apps/picsa-tools/resources-tool/src/app/components/resource-item/resource-item.component.scss @@ -2,18 +2,6 @@ display: contents; } -.language-code { - background: var(--color-secondary); - padding: 4px; - color: white; -} -.resource-item-info { - flex: 2; - display: flex; - flex-direction: column; - height: 100%; -} - .action-button { margin: auto 8px; } diff --git a/apps/picsa-tools/resources-tool/src/app/components/resource-item/resource-item.component.ts b/apps/picsa-tools/resources-tool/src/app/components/resource-item/resource-item.component.ts index 15a2928a7..4977149af 100644 --- a/apps/picsa-tools/resources-tool/src/app/components/resource-item/resource-item.component.ts +++ b/apps/picsa-tools/resources-tool/src/app/components/resource-item/resource-item.component.ts @@ -8,7 +8,7 @@ import { AppItemHandler } from './templates/app'; import { CollectionItemHandler } from './templates/collection/collection'; import { FileItemHandler } from './templates/file'; import { LinkItemHandler } from './templates/link'; -import { VideoItemHandler } from './video'; +import { VideoItemHandler } from './templates/video'; type IResourceClickHandlers = { [type in IResourceType]: (resource: any) => void; diff --git a/apps/picsa-tools/resources-tool/src/app/components/resource-item/templates/index.ts b/apps/picsa-tools/resources-tool/src/app/components/resource-item/templates/index.ts index 3d70c61f2..4f43a6a72 100644 --- a/apps/picsa-tools/resources-tool/src/app/components/resource-item/templates/index.ts +++ b/apps/picsa-tools/resources-tool/src/app/components/resource-item/templates/index.ts @@ -1,4 +1,4 @@ -export * from '../video'; +export * from './video'; export * from './app'; export * from './card/card'; export * from './collection/collection'; diff --git a/apps/picsa-tools/resources-tool/src/app/components/resource-item/video.ts b/apps/picsa-tools/resources-tool/src/app/components/resource-item/templates/video.ts similarity index 63% rename from apps/picsa-tools/resources-tool/src/app/components/resource-item/video.ts rename to apps/picsa-tools/resources-tool/src/app/components/resource-item/templates/video.ts index cad6a3fe4..e14141013 100644 --- a/apps/picsa-tools/resources-tool/src/app/components/resource-item/video.ts +++ b/apps/picsa-tools/resources-tool/src/app/components/resource-item/templates/video.ts @@ -1,14 +1,21 @@ import { Component, Input } from '@angular/core'; -import { IResourceVideo } from '../../models'; -import { ResourceItemComponent } from './resource-item.component'; -import { FileItemHandler } from './templates/file'; +import { IResourceVideo } from '../../../models'; +import { ResourceItemComponent } from '../resource-item.component'; +import { FileItemHandler } from './file'; @Component({ selector: 'resource-item-video', template: ` -
{{ resource.subtitle | translate }}
+{{ resource.description | translate }}
`, }) export class ResourceItemVideoComponent { diff --git a/apps/picsa-tools/resources-tool/src/app/data/picsa/videos.ts b/apps/picsa-tools/resources-tool/src/app/data/picsa/videos.ts index 7cc2057b3..1a82a7d3f 100644 --- a/apps/picsa-tools/resources-tool/src/app/data/picsa/videos.ts +++ b/apps/picsa-tools/resources-tool/src/app/data/picsa/videos.ts @@ -7,7 +7,7 @@ const videos: Record