ui adjusments
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
2026-07-03 10:56:51 +02:00
parent 25988d6c46
commit 6dd57bfe2b
2 changed files with 50 additions and 68 deletions
@@ -13,16 +13,16 @@
placeholder="https://example.com/article"
[formControl]="form.controls.urlInput" />
</mat-form-field>
<div class="actions">
<button
mat-flat-button
type="button"
color="primary"
(click)="onExtractKeywordsClick()">
<mat-icon>troubleshoot</mat-icon>
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
</button>
</div>
<button
mat-flat-button
type="button"
[color]="isExtracting() ? 'warn' : 'primary'"
(click)="onExtractKeywordsClick()">
<mat-icon>
{{ isExtracting() ? 'close' : 'troubleshoot' }}
</mat-icon>
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
</button>
</div>
</mat-tab>
@@ -126,31 +126,14 @@
</div>
<div class="table-col own-col">
<app-topic-autocomplete
label="z. B. Knowledge Graphs"
placeholder="Thema suchen oder eintippen..."
(topicSelected)="addKeywordFromInput($event)" />
<mat-chip-listbox
multiple
[value]="selectedManualKeywords()"
(change)="onCategoryChange('manual', $event)">
<div class="keyword-input-row compact">
<mat-form-field
appearance="outline"
class="full-width small-field">
<mat-label>z. B. Knowledge Graphs</mat-label>
<input
matInput
[formControl]="form.controls.keywordInput"
(keydown.enter)="
addKeywordFromInput(); $event.preventDefault()
" />
</mat-form-field>
<button
mat-icon-button
type="button"
color="primary"
matTooltip="Hinzufügen"
(click)="addKeywordFromInput()">
<mat-icon>add</mat-icon>
</button>
</div>
@if (manualKeywords().length > 0) {
@for (keyword of manualKeywords(); track keyword) {
<mat-chip-option
@@ -185,27 +185,22 @@
/* Add vertical separators between columns */
.table-col {
display: flex;
flex-direction: column;
min-width: 0;
padding: 0.5rem;
height: 100%;
border-right: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); /* Right border for columns */
border-right: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08));
&:last-child {
border-right: none; /* Remove border from last column */
border-right: none;
}
&:nth-child(3) {
border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); /* Right border for third column */
border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.08));
}
mat-chip-listbox {
width: 100%;
}
/* force chips into a single vertical column so rows line up across columns */
::ng-deep .mdc-evolution-chip-set__chips {
flex-direction: column;
align-items: flex-start;
gap: 0.35rem;
margin-top: 0.5rem;
}
}
@@ -411,16 +406,38 @@
background: rgba(0, 0, 0, 0.03);
}
}
.progress-container {
margin-top: 1rem;
padding: 0.5rem 0;
// Make the progress bar container relative for the shimmer overlay
mat-progress-bar {
height: 8px;
border-radius: 4px;
overflow: hidden;
animation: progressPulse 1.8s ease-in-out infinite;
position: relative;
overflow: hidden; // keeps the shimmer inside the bar
// --- Set the bar fill to a constant blue ---
// Using the primary blue (adjust to your preferred "hell blue")
::ng-deep .mat-progress-bar-fill::after {
background-color: #2196f3; // bright blue
}
// --- Shimmer overlay (a moving highlight) ---
&::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none; // allow clicks to pass through
background: linear-gradient(
105deg,
transparent 0%,
rgba(5, 65, 230, 0.4) 100%,
transparent 0%
);
animation: shimmer 2s ease-in-out infinite;
}
}
.status-message {
@@ -429,32 +446,14 @@
color: var(--sg-text-secondary);
text-align: center;
font-weight: 500;
animation: fadeSlideIn 0.4s ease-out;
}
}
@keyframes fadeSlideIn {
from {
opacity: 0;
transform: translateY(6px);
@keyframes shimmer {
0% {
transform: translateX(-100%);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes progressPulse {
0%,
100% {
transform: scaleY(1);
opacity: 1;
}
50% {
transform: scaleY(1.08);
opacity: 0.9;
transform: translateX(100%);
}
}