frontend költség beállítások
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
>
|
||||
<!-- ── Image Area (Top 40%) ── -->
|
||||
<div class="h-36 rounded-t-2xl bg-gradient-to-br from-slate-100 to-slate-200 flex items-center justify-center overflow-hidden relative">
|
||||
<template v-if="vehicle.image">
|
||||
<img :src="vehicle.image" :alt="vehicle.brand" class="h-full w-full object-cover" />
|
||||
<template v-if="vehicle.image_url || vehicle.image">
|
||||
<img :src="vehicle.image_url || vehicle.image" :alt="vehicle.brand" class="h-full w-full object-cover" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<!-- Car SVG silhouette placeholder -->
|
||||
@@ -59,7 +59,7 @@
|
||||
<VehiclePlateBadge
|
||||
:license-plate="vehicle.license_plate"
|
||||
:brand="vehicle.brand"
|
||||
:country-code="vehicle.countryCode || vehicle.country_code"
|
||||
:country-code="vehicle.registration_country || vehicle.countryCode || vehicle.country_code"
|
||||
size="md"
|
||||
/>
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
<svg class="h-3.5 w-3.5 shrink-0 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 10h-2m2 4h-2m-4-4h-2m2 4h-2m6-8h2a2 2 0 012 2v4a2 2 0 01-2 2h-2m-4 0H8a2 2 0 01-2-2V8a2 2 0 012-2h4m0 0V4m0 4v4" />
|
||||
</svg>
|
||||
<span>{{ vehicle.engine || vehicle.fuel_type || '—' }}</span>
|
||||
<span>{{ vehicle.power_kw || vehicle.engine_capacity ? (vehicle.power_kw ? vehicle.power_kw + ' kW' : '') + (vehicle.engine_capacity ? ' / ' + vehicle.engine_capacity + ' cm³' : '') : vehicle.engine || vehicle.fuel_type || '—' }}</span>
|
||||
</div>
|
||||
|
||||
<!-- Color -->
|
||||
@@ -100,7 +100,7 @@
|
||||
<svg class="h-3.5 w-3.5 shrink-0 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01" />
|
||||
</svg>
|
||||
<span>{{ vehicle.individual_equipment?.color || vehicle.color || '—' }}</span>
|
||||
<span>{{ vehicle.individual_equipment?.color || vehicle.color || t('common.na') }}</span>
|
||||
</div>
|
||||
|
||||
<!-- Next Service (highlighted) -->
|
||||
@@ -111,7 +111,7 @@
|
||||
<svg class="h-3.5 w-3.5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
</svg>
|
||||
<span class="font-semibold">{{ t('vehicle.nextService') }}: {{ vehicle.nextService || t('vehicle.noData') }}</span>
|
||||
<span class="font-semibold">{{ t('common.nextService') }}: {{ vehicle.nextService || t('common.noData') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -130,6 +130,14 @@
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<!-- Primary Vehicle Badge Text (below star) -->
|
||||
<div
|
||||
v-if="vehicle.is_primary"
|
||||
class="absolute top-11 left-3 z-20 rounded-full bg-amber-400/90 px-2 py-0.5 text-[10px] font-semibold text-white shadow-sm backdrop-blur-sm"
|
||||
>
|
||||
{{ t('vehicle.primaryVehicle') }}
|
||||
</div>
|
||||
|
||||
<!-- Edit Button (top-right overlay) -->
|
||||
<button
|
||||
class="absolute top-3 right-3 flex h-8 w-8 items-center justify-center rounded-full bg-white/80 text-slate-400 opacity-0 shadow-sm backdrop-blur-sm transition-all hover:bg-sf-accent hover:text-white group-hover:opacity-100 z-20"
|
||||
|
||||
Reference in New Issue
Block a user