@bytebrand/fe-ui-core-autobahn 1.0.22 → 1.0.24
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 +1 -1
- package/theme/md3.css +16 -5
- package/vdp/VdpModules.tsx +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
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
|
@@ -1165,8 +1165,10 @@
|
|
|
1165
1165
|
margin-bottom: -1px; transition: color .15s, border-color .15s; text-align: center; }
|
|
1166
1166
|
.md3 .fin-tab.on { color: var(--md-primary); border-bottom-color: var(--md-primary); }
|
|
1167
1167
|
.md3 .fin-tab:hover:not(.on) { color: var(--md-on-surface); }
|
|
1168
|
-
/* 2-col grid: left grows, right fixed 148px — pill (row 1) and bar (row 2) share a column edge, never wrap
|
|
1169
|
-
|
|
1168
|
+
/* 2-col grid: left grows, right fixed 148px — pill (row 1) and bar (row 2) share a column edge, never wrap.
|
|
1169
|
+
minmax(0,1fr) lets the rate column SHRINK below its content (plain 1fr's min is auto, which let the
|
|
1170
|
+
52px phone rate blow the whole card past the viewport). */
|
|
1171
|
+
.md3 .fin-price-grid { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 6px 16px; align-items: center; margin-top: 8px; }
|
|
1170
1172
|
.md3 .fin-rate-main { min-width: 0; }
|
|
1171
1173
|
/* rating pill — light tier-tinted bg, tier-colored text + icon (bg/color set inline per tier) */
|
|
1172
1174
|
.md3 .fin-eval-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px;
|
|
@@ -1303,7 +1305,10 @@
|
|
|
1303
1305
|
.md3 .show-tablet { display: flex !important; }
|
|
1304
1306
|
.md3 .srp-rail { display: none; } /* rail is desktop-only; ≤980 uses the filter sheet */
|
|
1305
1307
|
.md3 .srp-grid { grid-template-columns: 1fr; }
|
|
1306
|
-
|
|
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. */
|
|
1311
|
+
.md3 .vdp-grid { display: flex; flex-direction: column; align-items: stretch; }
|
|
1307
1312
|
.md3 .vdp-gallery { order: 1; }
|
|
1308
1313
|
/* mobile-only "first screen": identity + trust row BEFORE the finance card, highlights/
|
|
1309
1314
|
condition tiles moved AFTER it (both split out of the desktop-only VdpHeaderCard,
|
|
@@ -1487,10 +1492,16 @@
|
|
|
1487
1492
|
@media (max-width: 600px) {
|
|
1488
1493
|
/* full-bleed gallery: edge-to-edge, app-like (production pattern) */
|
|
1489
1494
|
.md3 .vdp-gallerybox { margin: 0 -24px; border-radius: 0; border: 0; box-shadow: none; }
|
|
1490
|
-
/* the carousel's own overlay dots move into the below-image controls row (page-rendered
|
|
1491
|
-
|
|
1495
|
+
/* the carousel's own overlay dots move into the below-image controls row (page-rendered;
|
|
1496
|
+
the dots div carries an inline display:flex — hence !important) */
|
|
1497
|
+
.md3 .vdp-gallerybox .cardcar-dots { display: none !important; }
|
|
1492
1498
|
/* mockup hero rate is a notch bigger on phone (inline style says 48 — hence !important) */
|
|
1493
1499
|
.md3 .fin-rate-main .num { font-size: 52px !important; letter-spacing: -1.5px !important; }
|
|
1500
|
+
/* narrower rating column (figma bar is 115px) frees room for the bigger rate; let the
|
|
1501
|
+
€ /mtl. suffix wrap under the number instead of pushing the grid wide on 4-digit rates */
|
|
1502
|
+
.md3 .fin-price-grid { grid-template-columns: minmax(0, 1fr) 112px; }
|
|
1503
|
+
.md3 .fin-rate-main > div { flex-wrap: wrap; }
|
|
1504
|
+
.md3 .fin-rate-main .md-body-sm { font-size: 15px !important; font-weight: 700 !important; color: var(--md-on-surface-variant) !important; }
|
|
1494
1505
|
}
|
|
1495
1506
|
|
|
1496
1507
|
/* ---------- save-search bar ---------- */
|
package/vdp/VdpModules.tsx
CHANGED
|
@@ -175,7 +175,8 @@ export interface VdpTrustRowProps {
|
|
|
175
175
|
* availability · view count · favorite count · "Geprüft" (every auto.de listing is
|
|
176
176
|
* 130-point inspected, so this one is always shown, not conditional real data). */
|
|
177
177
|
export const VdpTrustRow: React.FunctionComponent<VdpTrustRowProps> = ({ available, viewCount, favCount, t }) => (
|
|
178
|
-
|
|
178
|
+
// one swipeable line (mockup), never a ragged second row
|
|
179
|
+
<div style={{ display: 'flex', flexWrap: 'nowrap', overflowX: 'auto', scrollbarWidth: 'none', alignItems: 'center', gap: 6, marginTop: 10 }}>
|
|
179
180
|
{available && (
|
|
180
181
|
<span className="vdp-trust-chip">
|
|
181
182
|
<Icon name="check" size={13} stroke={2.4} color="var(--md-good)" />
|