diff --git a/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.html b/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.html index 7e2241e9..0c5aae40 100644 --- a/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.html +++ b/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.html @@ -110,58 +110,64 @@ @if (project.highlight) { @let highlight = project.highlight; -
-
- @if (highlight.topic.length > 0) { -
-

Titel

- -
- } - - @if (highlight.recipient.length > 0) { -
-

Zuwendungsempfänger

- -
- } - @if (highlight.joint_project.length > 0) { -
-

Verbundprojekt

- -
- } - @if (highlight.executing_agency.length > 0) { -
-

Ausführende Stelle

- -
- } + +
+

Fundstelle im Projekt

-
+ + +
+ @if (highlight.topic.length > 0) { +
+

Titel

+ +
+ } + + @if (highlight.recipient.length > 0) { +
+

Zuwendungsempfänger

+ +
+ } + @if (highlight.joint_project.length > 0) { +
+

Verbundprojekt

+ +
+ } + @if (highlight.executing_agency.length > 0) { +
+

Ausführende Stelle

+ +
+ } +
+
+ }
diff --git a/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.scss b/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.scss index 63d6ff2d..57b73879 100644 --- a/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.scss +++ b/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.scss @@ -205,97 +205,6 @@ } } } -// ------------------------ -// Expanded project panel -// ------------------------ - -.project-panel { - width: 100%; - padding: 12px 16px 14px; - color: var(--sg-text); - background: var(--sg-background); - border-top: 1px solid var(--sg-border); -} - -.project-panel__header { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 12px; - margin-bottom: 10px; -} - -.project-panel__heading { - display: flex; - align-items: flex-start; - gap: 8px; - - > mat-icon { - flex: 0 0 auto; - width: 19px; - height: 19px; - color: var(--sg-primary); - font-size: 19px; - } - - h3 { - margin: 0; - font-size: 13px; - font-weight: 700; - line-height: 1.2; - } - - p { - margin: 1px 0 0; - color: var(--sg-text-muted); - font-size: 11px; - line-height: 1.3; - } -} - -.project-panel__content { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); - gap: 10px; -} - -.panel-field { - min-width: 0; - - &--full { - grid-column: 1 / -1; - } -} - -.panel-field__label { - color: var(--sg-text-muted); - font-size: 10px; - font-weight: 700; - text-transform: uppercase; - letter-spacing: 0.02em; -} - -.panel-field__text { - margin: 0; - font-size: 12px; - line-height: 1.5; - overflow-wrap: anywhere; -} - -.project-panel__empty { - display: flex; - align-items: center; - gap: 6px; - grid-column: 1 / -1; - color: var(--sg-text-muted); - font-size: 12px; - - mat-icon { - width: 16px; - height: 16px; - font-size: 16px; - } -} // ------------------------ // Responsive adjustments diff --git a/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.ts b/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.ts index 8c304c41..c15c207f 100644 --- a/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.ts +++ b/webapp/src/app/shared/ui/bund-project-table/bund-project-table.component.ts @@ -32,7 +32,7 @@ import { HighlightedTextComponent, HighlightTerm, } from '../highlighted-text/highlighted-text.component'; -import { MatDividerModule } from '@angular/material/divider'; +import { TableDetailRowComponent } from '../table-detail-row/table-detail-row.component'; @Component({ selector: 'app-bund-project-table', imports: [ @@ -49,6 +49,7 @@ import { MatDividerModule } from '@angular/material/divider'; AppTopicChipComponent, SkTextDirective, HighlightedTextComponent, + TableDetailRowComponent, ], templateUrl: './bund-project-table.component.html', styleUrl: './bund-project-table.component.scss', diff --git a/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.html b/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.html index 828a5c93..f88a1295 100644 --- a/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.html +++ b/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.html @@ -65,29 +65,33 @@ @if (project.highlight) { @let highlight = project.highlight; -
-
-
- - -
-
- -
+ + +
+

Fundstelle im Projekt

+
+ + +
+
+ + +
+
@if (getPanelLanguage(project) === 'de') { @if (highlight.title_de.length > 0) {
@@ -161,8 +165,8 @@ }
} -
-
+ + }
diff --git a/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.scss b/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.scss index 53b53598..29bf2f5e 100644 --- a/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.scss +++ b/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.scss @@ -296,6 +296,7 @@ .language-toggle { display: inline-flex; flex: 0 0 auto; + margin-top: 5px; padding: 1px; border: 1px solid var(--sg-border); border-radius: 4px; @@ -358,94 +359,6 @@ line-height: 1.4; overflow-wrap: anywhere; } -// ------------------------ -// Expanded project panel -// ------------------------ - -.project-panel { - width: 100%; - padding: 12px 16px 14px; - color: var(--sg-text); - background: var(--sg-background); - border-top: 1px solid var(--sg-border); -} - -.project-panel__header { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 12px; - margin-bottom: 10px; -} - -.project-panel__heading { - display: flex; - align-items: flex-start; - gap: 8px; - - > mat-icon { - flex: 0 0 auto; - width: 19px; - height: 19px; - color: var(--sg-primary); - font-size: 19px; - } - - h3 { - margin: 0; - font-size: 13px; - font-weight: 700; - line-height: 1.2; - } - - p { - margin: 1px 0 0; - color: var(--sg-text-muted); - font-size: 11px; - line-height: 1.3; - } -} - -.project-panel__content { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); - gap: 10px; -} - -.panel-field { - min-width: 0; - - &--full { - grid-column: 1 / -1; - } -} - -.panel-field__label { - color: var(--sg-text-muted); - font-size: 10px; - font-weight: 700; - text-transform: uppercase; - letter-spacing: 0.02em; -} - -.panel-field__text { - margin: 0; - font-size: 12px; - line-height: 1.5; - overflow-wrap: anywhere; -} - -.project-panel__empty { - display: flex; - align-items: center; - gap: 6px; - grid-column: 1 / -1; - color: var(--sg-text-muted); - font-size: 12px; - - mat-icon { - width: 16px; - height: 16px; - font-size: 16px; - } +.keka { + background: var(--sg-surface-soft); } diff --git a/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.ts b/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.ts index b45b961d..78f55826 100644 --- a/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.ts +++ b/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.ts @@ -30,6 +30,7 @@ import { HighlightedTextComponent, HighlightTerm, } from '../highlighted-text/highlighted-text.component'; +import { TableDetailRowComponent } from '../table-detail-row/table-detail-row.component'; import { MatDividerModule } from '@angular/material/divider'; type HighlightLanguage = 'de' | 'en'; @@ -47,6 +48,7 @@ type HighlightLanguage = 'de' | 'en'; SkTextDirective, HighlightedTextComponent, MatDividerModule, + TableDetailRowComponent, ], templateUrl: './dfg-project-table.component.html', styleUrl: './dfg-project-table.component.scss', @@ -534,6 +536,7 @@ export class DfgProjectTableComponent implements OnInit { } } } + console.log(terms); return Array.from(terms); } diff --git a/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.html b/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.html index 026b639b..54804dcd 100644 --- a/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.html +++ b/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.html @@ -150,67 +150,73 @@ @if (project.highlight) { @let highlight = project.highlight; -
-
- @if (highlight.title.length > 0) { -
-

Titel

- -
- } - - @if (highlight.objective.length > 0) { -
-

Zusammenfassung

- -
- } - @if (highlight.acronym.length > 0) { -
-

Akronym

- -
- } - @if (highlight.cordis_topic_text.length > 0) { -
-

Cordis-Thema

- -
- } - @if (highlight.keywords.length > 0) { -
-

Schlüsselwörter

- -
- } + +
+

Fundstelle im Projekt

-
+ + +
+ @if (highlight.title.length > 0) { +
+

Titel

+ +
+ } + + @if (highlight.objective.length > 0) { +
+

Zusammenfassung

+ +
+ } + @if (highlight.acronym.length > 0) { +
+

Akronym

+ +
+ } + @if (highlight.cordis_topic_text.length > 0) { +
+

Cordis-Thema

+ +
+ } + @if (highlight.keywords.length > 0) { +
+

Schlüsselwörter

+ +
+ } +
+
+ }
diff --git a/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.scss b/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.scss index abe02090..7b182c1d 100644 --- a/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.scss +++ b/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.scss @@ -143,97 +143,6 @@ max-width: 200px; } // ------------------------ -// Expanded project panel -// ------------------------ - -.project-panel { - width: 100%; - padding: 12px 16px 14px; - color: var(--sg-text); - background: var(--sg-background); - border-top: 1px solid var(--sg-border); -} - -.project-panel__header { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 12px; - margin-bottom: 10px; -} - -.project-panel__heading { - display: flex; - align-items: flex-start; - gap: 8px; - - > mat-icon { - flex: 0 0 auto; - width: 19px; - height: 19px; - color: var(--sg-primary); - font-size: 19px; - } - - h3 { - margin: 0; - font-size: 13px; - font-weight: 700; - line-height: 1.2; - } - - p { - margin: 1px 0 0; - color: var(--sg-text-muted); - font-size: 11px; - line-height: 1.3; - } -} - -.project-panel__content { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); - gap: 10px; -} - -.panel-field { - min-width: 0; - - &--full { - grid-column: 1 / -1; - } -} - -.panel-field__label { - color: var(--sg-text-muted); - font-size: 10px; - font-weight: 700; - text-transform: uppercase; - letter-spacing: 0.02em; -} - -.panel-field__text { - margin: 0; - font-size: 12px; - line-height: 1.5; - overflow-wrap: anywhere; -} - -.project-panel__empty { - display: flex; - align-items: center; - gap: 6px; - grid-column: 1 / -1; - color: var(--sg-text-muted); - font-size: 12px; - - mat-icon { - width: 16px; - height: 16px; - font-size: 16px; - } -} -// ------------------------ // Data table overrides (applied via ::ng-deep) // ------------------------ diff --git a/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.ts b/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.ts index 9f81c4b7..b58d881d 100644 --- a/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.ts +++ b/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.ts @@ -39,6 +39,7 @@ import { } from '../highlighted-text/highlighted-text.component'; import { MatDividerModule } from '@angular/material/divider'; import { SearchResultsStateService } from '../../../modules/keywords-search/search-results/search-results-state.service'; +import { TableDetailRowComponent } from '../table-detail-row/table-detail-row.component'; @Component({ selector: 'app-eu-project-table', imports: [ @@ -57,6 +58,7 @@ import { SearchResultsStateService } from '../../../modules/keywords-search/sear SkTextDirective, MatDividerModule, HighlightedTextComponent, + TableDetailRowComponent, ], templateUrl: './eu-project-table.component.html', styleUrl: './eu-project-table.component.scss',