diff --git a/src/OberleisteApp.jsx b/src/OberleisteApp.jsx index eca3131..7d16a24 100644 --- a/src/OberleisteApp.jsx +++ b/src/OberleisteApp.jsx @@ -139,8 +139,9 @@ function BarCombo({ display: 'inline-flex', alignItems: 'center', gap: 5, opacity: disabled ? 0.5 : 1, flexShrink: 0, }}> - {/* Icon links — fixe Breite fuer X-Axis-Alignment zwischen Reihen */} - {iconClickable ? ( + {/* Icon links — fixe Breite fuer X-Axis-Alignment zwischen Reihen. + Wenn icon=null/undefined wird kein Icon-Slot reserviert. */} + {icon && (iconClickable ? ( ) const ratio = (!isPerspective && appliedScale && scaleVal) @@ -626,12 +643,12 @@ export default function OberleisteApp() { ? Math.round(ratio * 100) + '%' : (ratio * 100).toFixed(ratio < 0.1 ? 1 : 0) + '%' const atScale = ratio != null && Math.abs(ratio - 1) < 0.005 - const STAT_W = 80 // Breite der linken Stat-Chips (1:N / %) + const STAT_W = 70 // Breite der linken Stat-Chips const statChipStyle = (accentTint) => ({ display: 'inline-flex', alignItems: 'center', justifyContent: 'center', height: BAR_H, width: STAT_W, background: accentTint ? 'var(--accent-dim)' : 'var(--bg-input)', - color: accentTint ? 'var(--accent-light)' : 'var(--text-muted)', + color: accentTint ? 'var(--accent-light)' : 'var(--text-primary)', border: '1px solid var(--border)', borderRadius: 999, fontFamily: 'DM Mono, monospace', fontSize: 11, @@ -643,12 +660,13 @@ export default function OberleisteApp() { display: 'grid', gridTemplateColumns: 'auto auto', gap: '4px 6px', alignItems: 'center', flexShrink: 0, }}> - {/* Reihe 1, Spalte 1: Aktueller Live-Massstab */} -
{isPerspective ? '—' : fmtScale(scaleVal)}
- {/* Reihe 1, Spalte 2: Gesetzter Massstab Dropdown */} + {/* Reihe 1, Spalte 2: Gesetzter Massstab Dropdown — KEIN Icon, gleiche + Breite wie Buttons-Pill darunter, exakt uebereinander */} {customMode ? ( ) : ( applyDropdown(v)} disabled={isPerspective} - width={140} - valueAccent={appliedScale != null} + width={PILL_W} title="Gesetzter Massstab" > @@ -693,16 +709,16 @@ export default function OberleisteApp() { )} - {/* Reihe 2, Spalte 1: Zoom-Verhaeltnis zum gesetzten Massstab */} + {/* Reihe 2, Spalte 1: Zoom-Verhaeltnis */}
{ratioText}
- {/* Reihe 2, Spalte 2: Buttons-Pill */} + {/* Reihe 2, Spalte 2: Buttons-Pill — gleiche Breite wie Dropdown */}