@bytebrand/fe-ui-core-autobahn 1.0.49 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
5
5
  "main": "index.ts",
6
6
  "license": "UNLICENSED",
@@ -403,30 +403,38 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
403
403
  </div>
404
404
  )}
405
405
  <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
406
- <span
407
- className="num"
408
- style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px' }}
409
- >
410
- {/* cash keeps the long price number-only (a big "13.249 €" overflows the grid cell) */}
411
- {isCash ? eur(price) : `${eur(Math.round(monthly))} €`}
412
- </span>
413
406
  {isCash ? (
414
407
  <>
415
- {/* phone: € as big as the digits (Figma); desktop keeps the quiet small € */}
408
+ {/* phone: ONE unbreakable "13.249 €" span (a separate € span wraps to its own
409
+ line); desktop keeps the number + quiet small € pair */}
416
410
  <span
417
411
  className="num show-mobile"
418
- style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px', marginLeft: -4 }}
412
+ style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px', whiteSpace: 'nowrap' }}
419
413
  >
420
- €
414
+ {eur(price)} €
415
+ </span>
416
+ <span
417
+ className="num hide-mobile"
418
+ style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px' }}
419
+ >
420
+ {eur(price)}
421
421
  </span>
422
422
  <span className="md-body-sm hide-mobile" style={{ fontWeight: 600 }}>€</span>
423
423
  </>
424
424
  ) : (
425
- <span className="fin-rate-unit">
426
- {/* struck old rate (REAL oldMonthlyInstallment; SRP strikes the same source) */}
427
- {oldMonthly != null && <s className="num fin-rate-old">{eur(Math.round(oldMonthly))} €</s>}
428
- <span>{t('autobahn:finance.perMonth')}</span>
429
- </span>
425
+ <>
426
+ <span
427
+ className="num"
428
+ style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px' }}
429
+ >
430
+ {eur(Math.round(monthly))} €
431
+ </span>
432
+ <span className="fin-rate-unit">
433
+ {/* struck old rate (REAL oldMonthlyInstallment; SRP strikes the same source) */}
434
+ {oldMonthly != null && <s className="num fin-rate-old">{eur(Math.round(oldMonthly))} €</s>}
435
+ <span>{t('autobahn:finance.perMonth')}</span>
436
+ </span>
437
+ </>
430
438
  )}
431
439
  </div>
432
440
  {isCash && <div className="md-label-sm hide-mobile">{t('autobahn:finance.fixedPrice')}</div>}