@bytebrand/fe-ui-core-autobahn 1.0.206 → 1.0.208

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.
@@ -1237,10 +1237,11 @@ export const PricePaths: React.FunctionComponent<PricePathsProps> = ({ car, t, c
1237
1237
  <PriceHero car={car} mode="financing" t={t} alwaysShowUnit />
1238
1238
  <div className="pp-hero-terms">
1239
1239
  {/* ADV-405 follow-up (PM 19.11): the financing key figures replace the "Anzahlung ·
1240
- Laufzeit" terms here (same .pp-hero-terms size/colour, wraps in the narrow column);
1241
- without any real figure the old terms line stays. Leasing row below unchanged. */}
1240
+ Laufzeit" terms here (.pp-hero-terms colour) in exactly two lines, the font fitted to
1241
+ the narrow column (client call 19.11: "2 lines, the font size doesn't matter"); without
1242
+ any real figure the old terms line stays. */}
1242
1243
  {hasCreditKeyFigures(finKf) ? (
1243
- <CreditKeyFigures t={t} figures={finKf} details={detailsLink('financing')} cls="pp-ckf" fit={false} />
1244
+ <CreditKeyFigures t={t} figures={finKf} details={detailsLink('financing')} cls="pp-ckf" />
1244
1245
  ) : (
1245
1246
  <>
1246
1247
  {t('autobahn:card.price.financeTerms', {
@@ -1259,11 +1260,12 @@ export const PricePaths: React.FunctionComponent<PricePathsProps> = ({ car, t, c
1259
1260
  <div className="pp-lease-row">
1260
1261
  <PpRow label={t('autobahn:card.price.leasing')} value={car.lease as number} unit="mtl." t={t} />
1261
1262
  {/* ADV-405 follow-up (leasing, 19.11): the leasing key figures replace the compact
1262
- terms, in this row's own size, as one wrapping paragraph like the financing figures
1263
- above (SRL desktop exception); without any real figure the old terms stay. */}
1263
+ terms — exactly two lines like everywhere else (client call 19.11: "2 lines, the font
1264
+ size doesn't matter"), the font fitted to the column; without any real figure the
1265
+ old terms stay. */}
1264
1266
  {hasCreditKeyFigures(leaseKf) ? (
1265
1267
  <div className="pp-sub-terms">
1266
- <CreditKeyFigures t={t} figures={leaseKf} details={detailsLink('leasing')} cls="pp-ckf" fit={false} />
1268
+ <CreditKeyFigures t={t} figures={leaseKf} details={detailsLink('leasing')} cls="pp-ckf" />
1267
1269
  </div>
1268
1270
  ) : hasLeasTerms && (
1269
1271
  <div className="pp-sub-terms">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.206",
3
+ "version": "1.0.208",
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",
package/theme/md3.css CHANGED
@@ -9207,9 +9207,14 @@ line-height: 31px;
9207
9207
  cell takes the tallest line's height so switching tabs never changes the card's height. */
9208
9208
  .md3 .cc-terms-stack {
9209
9209
  display: grid;
9210
+ /* ADV-405: the column is the card's width, not the widest slot's min-content — the key figures'
9211
+ unbroken lines (also in the hidden slots) used to widen it past the card, so their auto-fit
9212
+ never shrank them and the card clipped the lines and the warning panel. */
9213
+ grid-template-columns: minmax(0, 1fr);
9210
9214
  }
9211
9215
  .md3 .cc-terms-slot {
9212
9216
  grid-area: 1 / 1;
9217
+ min-width: 0;
9213
9218
  /* own block formatting context: keeps .cc-terms' margins inside the slot (not collapsing
9214
9219
  through it), so every slot measures margin + line exactly as the single line did before */
9215
9220
  display: flow-root;
@@ -15657,10 +15662,10 @@ color: #005CFF;
15657
15662
  font-size: inherit !important;
15658
15663
  }
15659
15664
 
15660
- /* ADV-405 (PM 19.11): SRL desktop list card + dashboard row (PricePaths, .pp-ckf): the key figures
15661
- keep the column's own 10.5px terms size and flow as one wrapping paragraph (about three lines in
15662
- the ~210px column) instead of the two-line auto-fit. Elsewhere the separator between the two
15663
- lines stays hidden. */
15665
+ /* ADV-405: CreditKeyFigures fit={false} (.ckf--flow) — the key figures in the host's own size as one
15666
+ wrapping paragraph. No host uses it since the client call of 19.11 ("2 lines everywhere, the font
15667
+ size doesn't matter": the SRL desktop column fits like the rest). Elsewhere the separator between
15668
+ the two lines stays hidden. */
15664
15669
  .md3 .ckf:not(.ckf--flow) > .ckf-sep {
15665
15670
  display: none !important; /* host dot rules (e.g. .ad-req-terms .cc-terms-dot) must not show it */
15666
15671
  }