This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@
|
||||
[options]="weightOptions"
|
||||
[initialWeights]="defaultWeights"
|
||||
title="Personen-Gewichtung"
|
||||
description="Werte zwischen 0 und 1. Summe wird normalisiert zu 1."
|
||||
description="Bestimme die Relevanz der einzelnen Faktoren."
|
||||
resetLabel="Ausgewogen"
|
||||
applyLabel="Neu gewichten"
|
||||
normalizedTitle="Normalisiert"
|
||||
|
||||
@@ -27,23 +27,25 @@
|
||||
<span>{{ option.label }}</span>
|
||||
</div>
|
||||
|
||||
<mat-slider
|
||||
class="weight-slider"
|
||||
[min]="min"
|
||||
[max]="max"
|
||||
[step]="step"
|
||||
[discrete]="true"
|
||||
[showTickMarks]="true"
|
||||
[displayWith]="formatRawWeightLabel"
|
||||
[attr.aria-label]="option.label + ' Gewichtung'">
|
||||
<input
|
||||
matSliderThumb
|
||||
[formControl]="weightControl(option.key)"
|
||||
[attr.aria-label]="option.label + ' Gewichtung'" />
|
||||
</mat-slider>
|
||||
|
||||
<div class="weight-value">
|
||||
{{ formatRawWeightLabel(weightControl(option.key).value) }}
|
||||
<div class="slider-container">
|
||||
<div class="slider-labels">
|
||||
<span>unwichtig</span>
|
||||
<span>neutral</span>
|
||||
<span>wichtig</span>
|
||||
</div>
|
||||
<mat-slider
|
||||
class="weight-slider"
|
||||
[min]="min"
|
||||
[max]="max"
|
||||
[step]="step"
|
||||
[discrete]="false"
|
||||
[showTickMarks]="false"
|
||||
[attr.aria-label]="option.label + ' Gewichtung'">
|
||||
<input
|
||||
matSliderThumb
|
||||
[formControl]="weightControl(option.key)"
|
||||
[attr.aria-label]="option.label + ' Gewichtung'" />
|
||||
</mat-slider>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -55,11 +55,12 @@ $touch-target: 44px;
|
||||
|
||||
.weight-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 40px;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
align-items: center;
|
||||
gap: 0.2rem;
|
||||
gap: 0.5rem;
|
||||
min-height: 34px;
|
||||
font-size: 0.8rem;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.weight-label {
|
||||
@@ -86,18 +87,25 @@ $touch-target: 44px;
|
||||
}
|
||||
}
|
||||
|
||||
.slider-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.weight-slider {
|
||||
width: 100%;
|
||||
height: 20px; /* reduced from 24px */
|
||||
height: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.weight-value {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 650;
|
||||
.slider-labels {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.65rem;
|
||||
color: var(--sg-text-secondary);
|
||||
text-align: right;
|
||||
font-variant-numeric: tabular-nums;
|
||||
margin-bottom: -4px;
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
@@ -155,7 +163,7 @@ $touch-target: 44px;
|
||||
============================================================ */
|
||||
@media (max-width: $tablet) {
|
||||
.weight-row {
|
||||
grid-template-columns: 1fr 40px;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0.15rem;
|
||||
padding: 0.1rem 0;
|
||||
}
|
||||
@@ -165,12 +173,8 @@ $touch-target: 44px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.weight-slider {
|
||||
grid-column: 1 / 2;
|
||||
}
|
||||
|
||||
.weight-value {
|
||||
grid-column: 2 / 3;
|
||||
.slider-container {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.weight-actions {
|
||||
@@ -204,8 +208,8 @@ $touch-target: 44px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.weight-value {
|
||||
font-size: 0.7rem;
|
||||
.slider-labels {
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
|
||||
.weight-actions {
|
||||
|
||||
Reference in New Issue
Block a user