Zuletzt-Kachel: Werte jetzt wirklich spaltenbündig
- .teaser-Klasse auf die Kachel gesetzt (teaser()). - .teaser .leaf .v: min-width:72px (gleiche Spaltenbreite je Zeile). - .teaser .leaf .k: flex:1 1 auto, damit unterschiedlich lange Labels nicht mehr über justify-content:space-between den ganzen Rest der Zeile verschieben - vorher blieben .v-Boxen zwar gleich breit, saßen aber an unterschiedlichen X-Positionen. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
@@ -1187,7 +1187,7 @@ function badge() {
|
||||
function teaser() {
|
||||
if (!TRIPS.length && !FILLS.length) return "";
|
||||
const t = TRIPS[0], f = FILLS[0];
|
||||
return `<div class="tile"><span class="label">Zuletzt</span>
|
||||
return `<div class="tile teaser"><span class="label">Zuletzt</span>
|
||||
${t ? `<button class="leaf" style="padding-left:0" data-go="trip:${t.trip_id}">
|
||||
<span class="k">Letzte Fahrt<small>${esc(t.start_address || "")} → ${esc(t.end_address || "")}</small></span>
|
||||
<span class="v">${t.distance_km != null ? de(t.distance_km) + " km" : "offen"}<small>${t.status}</small></span>
|
||||
|
||||
Reference in New Issue
Block a user