@bytebrand/fe-ui-core-autobahn 1.0.23 → 1.0.25

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.23",
3
+ "version": "1.0.25",
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
@@ -1305,7 +1305,13 @@
1305
1305
  .md3 .show-tablet { display: flex !important; }
1306
1306
  .md3 .srp-rail { display: none; } /* rail is desktop-only; ≤980 uses the filter sheet */
1307
1307
  .md3 .srp-grid { grid-template-columns: 1fr; }
1308
- .md3 .vdp-grid { display: flex; flex-direction: column; }
1308
+ /* stretch, not the desktop rule's align-items:start — start makes every stacked block
1309
+ (incl. .vdp-aside + finance card) shrink-to-fit its max-content, which blows past the
1310
+ viewport as soon as any card content (e.g. the 52px rate) prefers to be wide. min-width:0
1311
+ on the aside is the backstop: stretch is floored by min-width:auto (= content min), and
1312
+ the nowrap CTA buttons alone min out around 400px. */
1313
+ .md3 .vdp-grid { display: flex; flex-direction: column; align-items: stretch; }
1314
+ .md3 .vdp-aside { min-width: 0; }
1309
1315
  .md3 .vdp-gallery { order: 1; }
1310
1316
  /* mobile-only "first screen": identity + trust row BEFORE the finance card, highlights/
1311
1317
  condition tiles moved AFTER it (both split out of the desktop-only VdpHeaderCard,
@@ -1499,6 +1505,12 @@
1499
1505
  .md3 .fin-price-grid { grid-template-columns: minmax(0, 1fr) 112px; }
1500
1506
  .md3 .fin-rate-main > div { flex-wrap: wrap; }
1501
1507
  .md3 .fin-rate-main .md-body-sm { font-size: 15px !important; font-weight: 700 !important; color: var(--md-on-surface-variant) !important; }
1508
+ /* figma pricing-card padding is 16 (inline says 20 — hence !important); the side-by-side
1509
+ CTAs must be allowed to SHRINK (mbtn is nowrap min-width:auto, 0-30px padding — the pair
1510
+ alone mins out wider than the phone card) */
1511
+ .md3 .vdp-aside > .mcard { padding: 16px !important; }
1512
+ .md3 .fin-cta-row .mbtn { min-width: 0; padding-left: 12px; padding-right: 12px; }
1513
+ .md3 .fin-cta-row .mbtn--outlined { padding-left: 8px; padding-right: 8px; }
1502
1514
  }
1503
1515
 
1504
1516
  /* ---------- save-search bar ---------- */
@@ -481,7 +481,7 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
481
481
  <div className="show-mobile" style={{ flexDirection: 'column' }}>
482
482
  {/* side-by-side CTAs — mockup ratio ~2:1, with the tiny auto.de-ID sitting
483
483
  directly under the Anrufen button (not in its own full-width row). */}
484
- <div style={{ display: 'flex', gap: 10, marginTop: 14, alignItems: 'flex-start' }}>
484
+ <div className="fin-cta-row" style={{ display: 'flex', gap: 10, marginTop: 14, alignItems: 'flex-start' }}>
485
485
  <Button variant="filled" size="lg" icon="shield-check" style={{ flex: 2 }} onClick={onSecure}>
486
486
  {t('autobahn:finance.secureOffer')}
487
487
  </Button>