diff --git a/src/app/components/entity-detail/detail-entity/detail-entity.component.html b/src/app/components/entity-detail/detail-entity/detail-entity.component.html index b310c29d..8a4309fa 100644 --- a/src/app/components/entity-detail/detail-entity/detail-entity.component.html +++ b/src/app/components/entity-detail/detail-entity/detail-entity.component.html @@ -1,213 +1,176 @@ @if (entity(); as entity) { @if (physicalEntity(); as physicalEntity) { - - - {{ 'Reference object' | translate }} - -

{{ physicalEntity.title }}

-

{{ physicalEntity.description }}

- @if (physicalEntity.collection) { -

{{ physicalEntity.collection }}

- } - @if (hasDimensions()) { - - - {{ 'Dimensions' | translate }} - - -
- @for (dimension of dimensions(); track dimension) { -

- {{ dimension.name }}: - {{ dimension.value }} - {{ dimension.type }} -

- } -
-
- } - @if (address(); as address) { -
- - - {{ 'Place' | translate }} - - @if (place(); as place) { -

{{ place.name }}

- } - @if (address.building) { -

{{ address.building }}

+ + +

{{ 'Reference object' | translate }}

+

{{ physicalEntity.title }}

+

{{ physicalEntity.description }}

+ @if (physicalEntity.collection) { +

{{ physicalEntity.collection }}

+ } + @if (hasDimensions()) { +

{{ 'Dimensions' | translate }}:

+
+ @for (dimension of dimensions(); track dimension) { +

+ {{ dimension.name }}: + {{ dimension.value }} + {{ dimension.type }} +

+ } +
+ } + @if (address(); as address) { +
+

{{ 'Location' | translate }}:

+ @if (place(); as place) { +

{{ place.name }}

+ } + @if (address.building) { +

{{ address.building }}

+ } + @if (address.street || address.number) { +

+ @if (address.street) { + {{ address.street }} } - @if (address.street || address.number) { -

- @if (address.street) { - {{ address.street }} - } - @if (address.number) { - {{ address.number }} - } -

+ @if (address.number) { + {{ address.number }} } - @if (address.postcode || address.city) { -

- @if (address.postcode) { - {{ address.postcode }} - } - @if (address.city) { - {{ address.city }} - } -

+

+ } + @if (address.postcode || address.city) { +

+ @if (address.postcode) { + {{ address.postcode }} } - @if (address.country) { -

{{ address.country }}

+ @if (address.city) { + {{ address.city }} } - +

+ } + @if (address.country) { +

{{ address.country }}

+ } +
+ } @else { + @if (place(); as place) { +
+ @if (place.name) { +

{{ place.name }}

+ } + @if (place.geopolarea) { +

{{ place.geopolarea }}

+ }
- } @else { - @if (place(); as place) { -
- @if (place.name) { -

{{ place.name }}

- } - @if (place.geopolarea) { -

{{ place.geopolarea }}

- } -
+ } + } + + @if (hasPersonsOrInstitutions()) { +

{{ 'Persons and Institutions' | translate }}:

+
+ @if (persons(); as persons) { + @for (person of persons; track person) { + + } + } + @if (institutions(); as institutions) { + @for (institution of institutions; track institution) { + + } } +
+ } + @if (hasExternalIds()) { +

{{ 'External identifiers' | translate }}:

+ @for (identifier of externalIds(); track identifier) { +

+ {{ identifier.type }}: + {{ identifier.value }} +

} - - @if (hasPersonsOrInstitutions()) { - - - - {{ 'Persons and Institutions' | translate }} - - - -
- @if (persons(); as persons) { - @for (person of persons; track person) { - - } - } - @if (institutions(); as institutions) { - @for (institution of institutions; track institution) { - - } - } -
-
+ } + @if (hasExternalLinks()) { +

{{ 'External links' | translate }}:

+ @for (link of externalLinks(); track link) { +
+ + {{ link.description || link.value }} + +
} - @if (hasExternalIds()) { - - - {{ 'External identifiers' | translate }} - - - @for (identifier of externalIds(); track identifier) { + } + @if (hasBibRefs()) { +

{{ 'Bibliographic references' | translate }}:

+ @for (ref of bibRefs(); track ref) { +
+ @if (ref.description) {

- {{ identifier.type }} - {{ identifier.value }} + {{ ref.description }}

} - - } - @if (hasExternalLinks()) { - - - {{ 'External links' | translate }} - - - @for (link of externalLinks(); track link) { - - } - - } - @if (hasBibRefs()) { - - - {{ 'Bibliographic references' | translate }} - - - @for (ref of bibRefs(); track ref) { -
- @if (ref.description) { -

- {{ ref.description }} -

- } - @if (ref.value) { -

- {{ ref.value }} -

- } -
+ @if (ref.value) { +

+ {{ ref.value }} +

} -
+
} - @if (hasMetadataFiles()) { - - - {{ 'Attached files' | translate }} - - - @for (file of metadataFiles(); track file) { - - } - + } + @if (hasMetadataFiles()) { +

{{ 'Attached files' | translate }}:

+ @for (file of metadataFiles(); track file) { + } - -
+ } + } @if (digitalEntity(); as digitalEntity) { - @if (Licenses[digitalEntity.licence]; as licence) { - - - {{ 'Licence' | translate }} - - - - +
+ @if (Licenses[digitalEntity.licence]; as licence) { + + +

{{ 'License' | translate }}

+
+ license +

{{ licence.short }}

+ + {{ licence.name }} + +
@if (digitalEntity.licenceAttribution; as attribution) { -

- {{ 'Creator: ' | translate }} +

+ {{ 'Attributor: ' | translate }} {{ attribution }}

} - - } + } - @if (hasPersonsOrInstitutions()) { - - - - {{ 'Persons and Institutions' | translate }} - - - -
+ @if (hasPersonsOrInstitutions()) { + +

+ {{ 'Related Persons and Institutions' | translate }} +

+
@if (persons(); as persons) { @for (person of persons; track person) { - + } } @if (institutions(); as institutions) { @@ -216,14 +179,10 @@

{{ physicalEntity.title }}

} }
- - } - @if (hasCreations()) { - - - {{ 'Creation' | translate }} - - + } + @if (hasCreations()) { + +

{{ 'Creation' | translate }}

@for (creation of creations(); track creation) {
    @@ -238,67 +197,53 @@

    {{ physicalEntity.title }}

}
-
- } - @if (hasExternalIds()) { - - - {{ 'External identifiers' | translate }} - - + } + @if (hasExternalIds()) { + +

{{ 'External identifiers' | translate }}

@for (identifier of externalIds(); track identifier) {

{{ identifier.type }}: {{ identifier.value }}

} -
- } - @if (hasExternalLinks()) { - - - {{ 'External links' | translate }} - - + } + @if (hasExternalLinks()) { + +

{{ 'External links' | translate }}

@for (link of externalLinks(); track link) { -
+ } - - } - @if (hasBibRefs()) { - - - {{ 'Bibliographic references' | translate }} - - + } + @if (hasBibRefs()) { + +

{{ 'Bibliographic references' | translate }}

@for (ref of bibRefs(); track ref) { -
+
@if (ref.value) {

{{ ref.value }}

} @if (ref.description) { -

+

{{ ref.description }}

}
} - - } - @if (hasMetadataFiles()) { - - - {{ 'Attached files' | translate }} - - + } + @if (hasMetadataFiles()) { + + +

{{ 'Attached files' | translate }}

@for (file of metadataFiles(); track file) { - } } diff --git a/src/app/components/entity-detail/detail-entity/detail-entity.component.scss b/src/app/components/entity-detail/detail-entity/detail-entity.component.scss index 4649fa7d..ae2660c8 100644 --- a/src/app/components/entity-detail/detail-entity/detail-entity.component.scss +++ b/src/app/components/entity-detail/detail-entity/detail-entity.component.scss @@ -6,21 +6,32 @@ } h2 { - margin-top: 0; + margin-top: 1rem; margin-bottom: 1rem; } +.title { + font-weight: bold; + margin-bottom: 0; +} + .block { & + .block { border-top: solid 0.01rem mat.m2-get-color-from-palette(theme.$kompakkt-primary, 500); - padding-top: 1rem; margin-top: 1rem; } } -img { - display: block; - height: 3rem; +.block.biblio { + p { + margin-bottom: 0; + } + + .biblio-subtitle { + margin-top: 0.25rem; + font-size: 0.875em; + color: #6b6b6b; + } } p { @@ -43,6 +54,7 @@ p { display: flex; flex-wrap: wrap; gap: 1.5rem; + margin-top: 1rem; } .wrap-item { @@ -65,3 +77,32 @@ p { content: ': '; } } + +.attribution { + font-size: 14px; + margin-top: 0; +} + +a { + color: mat.m2-get-color-from-palette(theme.$kompakkt-primary, 500); +} + +.license-block { + display: flex; + align-items: center; + gap: 0.5rem; +} + +.link-list { + margin-top: 1rem; + display: flex; + align-items: center; +} + +.bold { + font-weight: bold; +} + +mat-divider { + margin-top: 1rem; +} diff --git a/src/app/components/entity-detail/detail-entity/detail-entity.component.ts b/src/app/components/entity-detail/detail-entity/detail-entity.component.ts index c00c620a..d0800e81 100644 --- a/src/app/components/entity-detail/detail-entity/detail-entity.component.ts +++ b/src/app/components/entity-detail/detail-entity/detail-entity.component.ts @@ -14,6 +14,8 @@ import { TranslatePipe } from '../../../pipes/translate.pipe'; import { DetailInstitutionComponent } from '../detail-institution/detail-institution.component'; import { DetailPersonComponent } from '../detail-person/detail-person.component'; import { KeyValuePipe } from '@angular/common'; +import { MatDividerModule } from '@angular/material/divider'; +import { MatIconModule } from '@angular/material/icon'; // TODO: Kompakkt/Common typeguard const isAddress = (obj: IAddress): obj is IAddress => { @@ -32,7 +34,9 @@ const isAddress = (obj: IAddress): obj is IAddress => { templateUrl: './detail-entity.component.html', styleUrls: ['./detail-entity.component.scss'], imports: [ + MatDividerModule, MatExpansionModule, + MatIconModule, DetailPersonComponent, DetailInstitutionComponent, TranslatePipe, diff --git a/src/app/components/entity-detail/detail-institution/detail-institution.component.html b/src/app/components/entity-detail/detail-institution/detail-institution.component.html index 0fa41cff..8dc06681 100644 --- a/src/app/components/entity-detail/detail-institution/detail-institution.component.html +++ b/src/app/components/entity-detail/detail-institution/detail-institution.component.html @@ -1,48 +1,57 @@ -@if (institution$ | async; as institution) { - @if (roles$ | async; as roles) { -
-

- @for (role of roles; track role; let last = $last) { - {{ role }}{{ last ? ': ' : ', ' }} - } -

-

{{ institution.name }}

- @if (address$ | async; as address) { -
- @if (address.street || address.number) { -

- @if (address.street) { - {{ address.street }} - } - @if (address.number) { - {{ address.number }} - } -

+@if (institution(); as institution) { + @if (roles(); as roles) { +
+
+ +
+
+

{{ institution.name }}

+

+ @for (role of roles; track role; let last = $last) { + {{ role }}{{ last ? '' : ', ' }} } +

+
+
+ } - @if (address.postcode || address.city) { -

- @if (address.postcode) { - {{ address.postcode }} - } - @if (address.city) { - {{ address.city }} - } -

- } + +
+
+ +
+ + } +
- } + } diff --git a/src/app/components/entity-detail/detail-institution/detail-institution.component.scss b/src/app/components/entity-detail/detail-institution/detail-institution.component.scss index f7405498..674028e4 100644 --- a/src/app/components/entity-detail/detail-institution/detail-institution.component.scss +++ b/src/app/components/entity-detail/detail-institution/detail-institution.component.scss @@ -11,6 +11,65 @@ h3 { margin-bottom: 1rem; } +.institution-card { + margin-bottom: 1rem; + margin-top: 1rem; + display: flex; + align-items: center; + gap: 0.5rem; + + cursor: pointer; + + p { + margin: 0; + line-height: 1.2; + } +} + +.agent-image { + width: 3rem; + height: 3rem; + overflow: hidden; + border-radius: 50%; + + img { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } +} + +.institution-menu-content { + display: flex; + align-items: flex-start; + gap: 1rem; + padding: 1rem; + + .agent-image { + flex: 0 0 auto; + width: 3rem; + height: 3rem; + margin: 0; + } + + .menu-text { + min-width: 0; + overflow-wrap: anywhere; + + p { + margin: 0; + line-height: 1.3; + } + + .menu-title { + font-weight: 500; + margin-bottom: 0.25rem; + color: mat.m2-get-color-from-palette(theme.$kompakkt-primary, 500); + } + } +} + .mat-mdc-chip[color='primary'] { background: mat.m2-get-color-from-palette(theme.$kompakkt-primary, 500); color: white; diff --git a/src/app/components/entity-detail/detail-institution/detail-institution.component.ts b/src/app/components/entity-detail/detail-institution/detail-institution.component.ts index 291b222d..cae2b911 100644 --- a/src/app/components/entity-detail/detail-institution/detail-institution.component.ts +++ b/src/app/components/entity-detail/detail-institution/detail-institution.component.ts @@ -1,56 +1,35 @@ -import { Component, input, OnChanges, SimpleChanges } from '@angular/core'; -import { BehaviorSubject } from 'rxjs'; -import { filter, map } from 'rxjs/operators'; +import { Component, computed, input } from '@angular/core'; -import { AsyncPipe } from '@angular/common'; -import { IAddress, IInstitution } from '@kompakkt/common'; - -const firstKey = (obj: any) => Object.keys(obj)[0] ?? ''; +import { IAddress, IInstitution, isAddress } from '@kompakkt/common'; +import { TranslatePipe } from '../../../pipes/translate.pipe'; +import { MatMenuModule } from '@angular/material/menu'; @Component({ selector: 'app-detail-institution', templateUrl: './detail-institution.component.html', styleUrls: ['./detail-institution.component.scss'], - imports: [AsyncPipe], + imports: [TranslatePipe, MatMenuModule], }) -export class DetailInstitutionComponent implements OnChanges { - institution = input(); - - private institutionSubject = new BehaviorSubject(this.institution()); - - get institution$() { - return this.institutionSubject.pipe( - filter(institution => !!institution), - map(institution => institution as IInstitution), - ); - } - - get roles$() { - return this.institution$.pipe( - map(institution => institution.roles[firstKey(institution.roles)]), - filter(roleArr => !!roleArr), - map(roleArr => (roleArr as string[]).map(role => role.split('_').join(' ').toLowerCase())), - ); - } +export class DetailInstitutionComponent { + institution = input.required(); - get note$() { - return this.institution$.pipe( - map(institution => institution.notes[firstKey(institution.notes)]), - filter(note => !!note), - map(note => note as string), + roles = computed(() => { + const roles = this.institution().roles; + const firstRoleArr = Object.values(roles).find( + (value): value is string[] => Array.isArray(value) && value.length > 0, ); - } + return firstRoleArr?.map(role => role.split('_').join(' ').toLowerCase()); + }); - get address$() { - return this.institution$.pipe( - map(institution => institution.addresses[firstKey(institution.addresses)]), - filter(address => !!address), - map(address => address as IAddress), + address = computed(() => { + const references = this.institution().addresses; + const firstContactRef = Object.values(references).find((value): value is IAddress => + isAddress(value), ); - } + return firstContactRef; + }); - ngOnChanges(changes: SimpleChanges): void { - const institution = changes.institution?.currentValue as IInstitution | undefined; - if (institution) this.institutionSubject.next(institution); - } + imageUrl = computed(() => { + return '/assets/kompakkt-logo-cube.svg'; + }); } diff --git a/src/app/components/entity-detail/detail-person/detail-person.component.html b/src/app/components/entity-detail/detail-person/detail-person.component.html index 157500d0..397314f0 100644 --- a/src/app/components/entity-detail/detail-person/detail-person.component.html +++ b/src/app/components/entity-detail/detail-person/detail-person.component.html @@ -1,27 +1,42 @@ @if (person(); as person) { -
- @if (roles(); as roles) { -

- @for (role of roles; track role; let last = $last) { - {{ role }}{{ last ? ':' : ',' }} - } -

- } - -

{{ person.prename }} {{ person.name }}

- @if (contactRef(); as contact) { - @if (contact.mail) { -

{{ contact.mail }}

- } - @if (contact.note) { -

{{ contact.note }}

- } - @if (contact.phonenumber) { -

{{ contact.phonenumber }}

+
+
+ +
+
+

{{ person.prename }} {{ person.name }}

+ @if (roles(); as roles) { +

+ @for (role of roles; track role; let last = $last) { + {{ role }}{{ last ? '' : ',' }} + } +

} - } +
+ +
+
+ +
+ +
+
+ @if (institutions(); as institutions) {
@for (institution of institutions; track institution) { diff --git a/src/app/components/entity-detail/detail-person/detail-person.component.scss b/src/app/components/entity-detail/detail-person/detail-person.component.scss index 946366e9..1235213e 100644 --- a/src/app/components/entity-detail/detail-person/detail-person.component.scss +++ b/src/app/components/entity-detail/detail-person/detail-person.component.scss @@ -11,10 +11,69 @@ h3 { margin-bottom: 1rem; } +.person-card { + margin-bottom: 1rem; + margin-top: 1rem; + display: flex; + align-items: center; + gap: 0.5rem; + + cursor: pointer; + + p { + margin: 0; + line-height: 1.2; + } +} + app-detail-institution { padding: 0.5rem 0; } +.agent-image { + width: 3rem; + height: 3rem; + overflow: hidden; + border-radius: 50%; + + img { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } +} + +.person-menu-content { + display: flex; + align-items: flex-start; + gap: 1rem; + padding: 1rem; + + .agent-image { + flex: 0 0 auto; + width: 3rem; + height: 3rem; + margin: 0; + } + + .menu-text { + min-width: 0; + overflow-wrap: anywhere; + + p { + margin: 0; + line-height: 1.3; + } + + .menu-title { + font-weight: 500; + margin-bottom: 0.25rem; + color: mat.m2-get-color-from-palette(theme.$kompakkt-primary, 500); + } + } +} + ::ng-deep .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic { diff --git a/src/app/components/entity-detail/detail-person/detail-person.component.ts b/src/app/components/entity-detail/detail-person/detail-person.component.ts index 9eb85626..7f25834d 100644 --- a/src/app/components/entity-detail/detail-person/detail-person.component.ts +++ b/src/app/components/entity-detail/detail-person/detail-person.component.ts @@ -2,12 +2,14 @@ import { Component, computed, input } from '@angular/core'; import { IContact, IInstitution, IPerson, isContact, isInstitution } from '@kompakkt/common'; import { DetailInstitutionComponent } from '../detail-institution/detail-institution.component'; +import { TranslatePipe } from '../../../pipes/translate.pipe'; +import { MatMenuModule } from '@angular/material/menu'; @Component({ selector: 'app-detail-person', templateUrl: './detail-person.component.html', styleUrls: ['./detail-person.component.scss'], - imports: [DetailInstitutionComponent], + imports: [DetailInstitutionComponent, TranslatePipe, MatMenuModule], }) export class DetailPersonComponent { person = input.required(); @@ -36,4 +38,8 @@ export class DetailPersonComponent { ); return firstInstitutionArr; }); + + imageUrl = computed(() => { + return '/assets/kompakkt-logo-cube.svg'; + }); } diff --git a/src/app/components/entity-detail/entity-detail.component.html b/src/app/components/entity-detail/entity-detail.component.html index 2ffbd210..9b1dd16f 100644 --- a/src/app/components/entity-detail/entity-detail.component.html +++ b/src/app/components/entity-detail/entity-detail.component.html @@ -2,16 +2,20 @@ @if (digitalEntity(); as digitalEntity) {
-

{{ digitalEntity.title }}

+

{{ digitalEntity.title }}

{{ digitalEntity.description }}

@if (hasTags()) { - - @for (tag of tags(); track tag._id) { - {{ tag.value }} - } - +
+ sell + + @for (tag of tags(); track tag._id) { + {{ tag.value }} + } + +
}
+
diff --git a/src/app/components/entity-detail/entity-detail.component.scss b/src/app/components/entity-detail/entity-detail.component.scss index c6809fe1..8f372d81 100644 --- a/src/app/components/entity-detail/entity-detail.component.scss +++ b/src/app/components/entity-detail/entity-detail.component.scss @@ -3,15 +3,12 @@ .block { background: white; - padding: 1rem 0; + padding-top: 2rem; - &:first-child { - padding: 2rem; - } - - h1 { + h2 { color: mat.m2-get-color-from-palette(theme.$kompakkt-primary, 500); margin-top: 0; + font-weight: bold; } .button-row { @@ -37,10 +34,19 @@ gap: 0.5rem; ::ng-deep .mat-mdc-chip { - background-color: mat.m2-get-color-from-palette(theme.$kompakkt-primary, 500) !important; + background-color: transparent !important; + + border: 1px solid mat.m2-get-color-from-palette(theme.$kompakkt-primary, 500) !important; + border-radius: 16px; .mdc-evolution-chip__text-label { - color: #ffffff !important; + color: black !important; } } } + +.chip-row { + display: flex; + gap: 0.5rem; + align-items: center; +} diff --git a/src/app/components/entity-detail/entity-detail.component.ts b/src/app/components/entity-detail/entity-detail.component.ts index a53d6f05..6c2b0715 100644 --- a/src/app/components/entity-detail/entity-detail.component.ts +++ b/src/app/components/entity-detail/entity-detail.component.ts @@ -3,12 +3,14 @@ import { AccountService } from 'src/app/services'; import { IEntity, isDigitalEntity, isPhysicalEntity, isTag } from '@kompakkt/common'; import { DetailEntityComponent } from './detail-entity/detail-entity.component'; import { MatChipsModule } from '@angular/material/chips'; +import { MatDividerModule } from '@angular/material/divider'; +import { MatIconModule } from '@angular/material/icon'; @Component({ selector: 'app-entity-detail', templateUrl: './entity-detail.component.html', styleUrls: ['./entity-detail.component.scss'], - imports: [DetailEntityComponent, MatChipsModule], + imports: [DetailEntityComponent, MatChipsModule, MatDividerModule, MatIconModule], }) export class EntityDetailComponent { account = inject(AccountService); @@ -18,6 +20,7 @@ export class EntityDetailComponent { const { relatedDigitalEntity } = this.entity(); return isDigitalEntity(relatedDigitalEntity) ? relatedDigitalEntity : undefined; }); + public physicalEntities = computed(() => { const digitalEntity = this.digitalEntity(); return digitalEntity ? digitalEntity.phyObjs.filter(isPhysicalEntity) : []; diff --git a/src/app/components/metadata/licence/licence.component.html b/src/app/components/metadata/licence/licence.component.html index 3e0e9658..d9b1c393 100644 --- a/src/app/components/metadata/licence/licence.component.html +++ b/src/app/components/metadata/licence/licence.component.html @@ -15,7 +15,7 @@ referrerpolicy="no-referrer" rel="noreferrer" [title]="item.value.link" - >{{ item.value.name }}
{{ item.value.name + ' (' + item.value.short + ')' }} } diff --git a/src/app/metadata/licences.ts b/src/app/metadata/licences.ts index a4830610..1acf084b 100644 --- a/src/app/metadata/licences.ts +++ b/src/app/metadata/licences.ts @@ -1,6 +1,7 @@ export type Licence = { src: string; name: string; + short: string; link: string; attribution: boolean; description: string; @@ -23,7 +24,8 @@ const createElementsString = (elements: (keyof typeof licenceElements)[]) => export const Licences: Record = { CC0: { src: 'assets/licence/CC0.png', - name: 'No Rights Reserved (CC0)', + name: 'No Rights Reserved', + short: 'CC0', link: 'https://creativecommons.org/publicdomain/zero/1.0/', attribution: isFreeLicence('CC0'), description: @@ -31,7 +33,8 @@ export const Licences: Record = { }, PDM: { src: 'assets/licence/PDM.png', - name: 'Public Domain Mark 1.0 Universal (PDM 1.0)', + name: 'Public Domain Mark 1.0 Universal', + short: 'PDM 1.0', link: 'https://creativecommons.org/publicdomain/mark/1.0/', attribution: isFreeLicence('PDM'), description: @@ -39,7 +42,8 @@ export const Licences: Record = { }, BY: { src: 'assets/licence/BY.png', - name: 'Attribution 4.0 International (CC BY 4.0)', + name: 'Attribution 4.0 International', + short: 'CC BY 4.0', link: 'https://creativecommons.org/licenses/by/4.0', attribution: isFreeLicence('BY'), description: @@ -48,7 +52,8 @@ export const Licences: Record = { }, BYSA: { src: 'assets/licence/BY-SA.png', - name: 'Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)', + name: 'Attribution-ShareAlike 4.0 International', + short: 'CC BY-SA 4.0', link: 'https://creativecommons.org/licenses/by-sa/4.0', attribution: isFreeLicence('BYSA'), description: @@ -57,7 +62,8 @@ export const Licences: Record = { }, BYND: { src: 'assets/licence/BY-ND.png', - name: 'Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)', + name: 'Attribution-NoDerivatives 4.0 International', + short: 'CC BY-ND 4.0', link: 'https://creativecommons.org/licenses/by-nd/4.0', attribution: isFreeLicence('BYND'), description: @@ -66,7 +72,8 @@ export const Licences: Record = { }, BYNC: { src: 'assets/licence/BYNC.png', - name: 'Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)', + name: 'Attribution-NonCommercial 4.0 International', + short: 'CC BY-NC 4.0', link: 'https://creativecommons.org/licenses/by-nc/4.0', attribution: isFreeLicence('BYNC'), description: @@ -75,7 +82,8 @@ export const Licences: Record = { }, BYNCSA: { src: 'assets/licence/BYNCSA.png', - name: 'Attribution-NonCommercial-ShareAlike International (CC BY-NC-SA 4.0)', + name: 'Attribution-NonCommercial-ShareAlike International', + short: 'CC BY-NC-SA 4.0', link: 'https://creativecommons.org/licenses/by-nc-sa/4.0', attribution: isFreeLicence('BYNCSA'), description: @@ -84,7 +92,8 @@ export const Licences: Record = { }, BYNCND: { src: 'assets/licence/BYNCND.png', - name: 'Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)', + name: 'Attribution-NonCommercial-NoDerivatives 4.0 International', + short: 'CC BY-NC-ND 4.0', link: 'https://creativecommons.org/licenses/by-nc-nd/4.0', attribution: isFreeLicence('BYNCND'), description: @@ -94,6 +103,7 @@ export const Licences: Record = { AR: { src: 'assets/licence/AR.png', name: 'All rights reserved', + short: 'AR', link: 'https://en.wikipedia.org/wiki/All_rights_reserved', attribution: isFreeLicence('AR'), description: diff --git a/src/app/pages/detail-page/detail-page.component.scss b/src/app/pages/detail-page/detail-page.component.scss index 51b4f0d2..f9dd0b08 100644 --- a/src/app/pages/detail-page/detail-page.component.scss +++ b/src/app/pages/detail-page/detail-page.component.scss @@ -17,6 +17,13 @@ .iframe-container { flex-grow: 1; min-height: 50vh; + + @include breakpoints.max-width(l) { + flex-grow: 0; + flex-shrink: 0; + height: 60vh; + min-height: 320px; + } } #detail-content { @@ -30,17 +37,20 @@ grid-template-columns: calc(60% - 1rem) calc(40% - 1rem); grid-template-rows: 100%; - background-color: #eee; - padding: 0 2rem; grid-gap: 2rem; - @include breakpoints.max-width(m) { + @media (max-width: 1280px) { + grid-template-columns: minmax(0, 1.5fr) minmax(380px, 1fr); + } + + @include breakpoints.max-width(l) { display: flex; flex-flow: column; padding: 0; grid-gap: 0; max-height: unset; + overflow-y: visible; } } @@ -51,6 +61,12 @@ app-compilation-detail { flex-direction: column; align-items: stretch; height: 100%; + + @include breakpoints.max-width(l) { + height: auto; + overflow-y: visible; + padding: 1rem; + } } div.related-content-wrapper { diff --git a/src/styles.scss b/src/styles.scss index e95984cc..1be37271 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -847,10 +847,6 @@ app-edit-entity-dialog { div.block { margin-bottom: 0 !important; - & + div.block { - margin-top: 1rem !important; - padding-top: 16px !important; - } border-top: none !important; } @@ -1041,7 +1037,7 @@ div.option-count-badge { } .format-title-agents { - text-decoration: underline; + color: #6b6b6b; } .embed-text-box {