show vehicle thumbnail
This commit is contained in:
@@ -30,7 +30,11 @@
|
|||||||
<div class="row mt-2">
|
<div class="row mt-2">
|
||||||
<div class="d-flex lubelogger-navbar">
|
<div class="d-flex lubelogger-navbar">
|
||||||
<div class="me-2" style="cursor:pointer;" onclick="returnToGarage()">
|
<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>
|
</div>
|
||||||
<ul class="nav nav-tabs lubelogger-tab flex-grow-1" id="vehicleTab" role="tablist">
|
<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)">
|
<li class="nav-item" role="presentation" style="order: @userConfig.TabOrder.FindIndex(x=>x == ImportMode.Dashboard)">
|
||||||
|
|||||||
@@ -536,3 +536,15 @@ html[data-bs-theme="light"] .api-method:hover {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
top: 15%
|
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
Reference in New Issue
Block a user