show vehicle thumbnail

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2025-05-16 14:45:06 -06:00
parent adb505c87c
commit fae4aa31aa
3 changed files with 19 additions and 3 deletions

View File

@@ -30,7 +30,11 @@
<div class="row mt-2">
<div class="d-flex lubelogger-navbar">
<div class="me-2" style="cursor:pointer;" onclick="returnToGarage()">
<img src="@config.GetSmallLogoUrl()" class="lubelogger-logo" />
@if(userConfig.ShowVehicleThumbnail) {
<img src="@Model.ImageLocation" class="lubelogger-vehicle-logo @(string.IsNullOrWhiteSpace(Model.SoldDate) ? "" : "sold")" />
} else {
<img src="@config.GetSmallLogoUrl()" class="lubelogger-logo" />
}
</div>
<ul class="nav nav-tabs lubelogger-tab flex-grow-1" id="vehicleTab" role="tablist">
<li class="nav-item" role="presentation" style="order: @userConfig.TabOrder.FindIndex(x=>x == ImportMode.Dashboard)">

View File

@@ -535,4 +535,16 @@ html[data-bs-theme="light"] .api-method:hover {
font-size: 0.6em;
font-weight: 500;
top: 15%
}
}
.lubelogger-vehicle-logo {
height: 48px;
width: 48px;
border-radius: 50%;
object-fit: cover;
pointer-events: none;
}
.lubelogger-vehicle-logo.sold {
filter: grayscale(100%);
}

File diff suppressed because one or more lines are too long