minor ui adjustments
This commit is contained in:
@@ -78,19 +78,39 @@
|
||||
<div class="extraction-grid">
|
||||
<!-- Extracted Keywords Card -->
|
||||
<mat-card appearance="outlined" class="keyword-card extracted-card">
|
||||
<!--Source content display === -->
|
||||
@if (sourceContent().length > 0) {
|
||||
<mat-expansion-panel class="source-expansion">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title
|
||||
>Verarbeitete Inhalte: {{ sourceUrl() }}</mat-panel-title
|
||||
>
|
||||
</mat-expansion-panel-header>
|
||||
<div class="source-text">{{ sourceContent() }}</div>
|
||||
</mat-expansion-panel>
|
||||
<mat-divider />
|
||||
}
|
||||
<!-- Manually Added Section -->
|
||||
<mat-card-content>
|
||||
<div class="manual-section">
|
||||
<mat-card-title class="section-title">Eigene Keywords</mat-card-title>
|
||||
@if (manualKeywords().length > 0) {
|
||||
<mat-chip-listbox
|
||||
multiple
|
||||
dense
|
||||
[value]="selectedManualKeywords()"
|
||||
(change)="onCategoryChange('manual', $event)">
|
||||
@for (keyword of manualKeywords(); track keyword) {
|
||||
<mat-chip-option
|
||||
[value]="keyword"
|
||||
class="compact-chip manual-chip"
|
||||
>{{ keyword }}</mat-chip-option
|
||||
>
|
||||
}
|
||||
</mat-chip-listbox>
|
||||
} @else {
|
||||
<p class="empty-state">Keine manuell hinzugefügten Keywords.</p>
|
||||
}
|
||||
</div>
|
||||
<!--Source content display === -->
|
||||
@if (sourceContent().length > 0) {
|
||||
<mat-divider />
|
||||
<mat-expansion-panel class="source-expansion">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>Quellentext: {{ sourceUrl() }}</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<div class="source-text">{{ sourceContent() }}</div>
|
||||
</mat-expansion-panel>
|
||||
}
|
||||
<mat-divider></mat-divider>
|
||||
<!-- Extracted Keywords Section -->
|
||||
@if (!isExtracting()) {
|
||||
<div class="extracted-section">
|
||||
@@ -224,29 +244,6 @@
|
||||
}
|
||||
</span>
|
||||
}
|
||||
<mat-divider></mat-divider>
|
||||
|
||||
<!-- Manually Added Section -->
|
||||
<div class="manual-section">
|
||||
<mat-card-title class="section-title">Eigene Keywords</mat-card-title>
|
||||
@if (manualKeywords().length > 0) {
|
||||
<mat-chip-listbox
|
||||
multiple
|
||||
dense
|
||||
[value]="selectedManualKeywords()"
|
||||
(change)="onCategoryChange('manual', $event)">
|
||||
@for (keyword of manualKeywords(); track keyword) {
|
||||
<mat-chip-option
|
||||
[value]="keyword"
|
||||
class="compact-chip manual-chip"
|
||||
>{{ keyword }}</mat-chip-option
|
||||
>
|
||||
}
|
||||
</mat-chip-listbox>
|
||||
} @else {
|
||||
<p class="empty-state">Keine manuell hinzugefügten Keywords.</p>
|
||||
}
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
border-radius: 4px;
|
||||
border-left: 4px solid var(--sg-primary, #1976d2);
|
||||
|
||||
::ng-deep .mat-expansion-panel-header {
|
||||
.mat-expansion-panel-header {
|
||||
padding: 0.5rem 0.75rem;
|
||||
height: auto;
|
||||
min-height: 36px;
|
||||
@@ -225,7 +225,7 @@
|
||||
|
||||
::ng-deep .mat-expansion-panel-body {
|
||||
padding: 0 0.75rem 0.75rem 0.75rem;
|
||||
max-height: 120px; // scrollable if content is long
|
||||
max-height: 350px; // scrollable if content is long
|
||||
overflow-y: auto;
|
||||
white-space: pre-wrap; // preserve line breaks
|
||||
word-break: break-word;
|
||||
|
||||
Reference in New Issue
Block a user