Working on crafting fixes
This commit is contained in:
@@ -139,8 +139,12 @@
|
||||
{
|
||||
<span class="absolute bottom-0 right-0 bg-black/80 text-white text-[10px] px-0.5 rounded-tl">@item.Quantity</span>
|
||||
}
|
||||
@if (item.CraftedItem != null)
|
||||
{
|
||||
<span class="absolute top-0 left-0 text-cyan-400 text-[10px] font-bold">⚒️</span>
|
||||
}
|
||||
<div class="absolute left-full ml-1 top-0 z-50 hidden group-hover:block">
|
||||
@await Html.PartialAsync("_ItemTooltip", item.ItemDefinition)
|
||||
@await Html.PartialAsync("_CharacterItemTooltip", item)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
@@ -221,7 +225,7 @@
|
||||
{
|
||||
var item = Model.EquippedItems.FirstOrDefault(i => i.EquipSlot == slot.Item1);
|
||||
<div class="flex items-center gap-2 p-1.5 bg-gray-800 rounded group relative">
|
||||
<div class="w-8 h-8 bg-gray-900 rounded border border-gray-700 flex items-center justify-center flex-shrink-0">
|
||||
<div class="w-8 h-8 bg-gray-900 rounded border border-gray-700 flex items-center justify-center flex-shrink-0 relative">
|
||||
@if (item?.ItemDefinition != null && !string.IsNullOrEmpty(item.ItemDefinition.SpritePath))
|
||||
{
|
||||
<img src="@Model.CdnBaseUrl/downloads/@item.ItemDefinition.SpritePath" class="w-6 h-6 object-contain" />
|
||||
@@ -230,17 +234,25 @@
|
||||
{
|
||||
<span class="text-gray-600 text-[10px]">@slot.Item2.Substring(0, 1)</span>
|
||||
}
|
||||
@if (item?.CraftedItem != null)
|
||||
{
|
||||
<span class="absolute -top-1 -right-1 text-cyan-400 text-[10px] font-bold">⚒️</span>
|
||||
}
|
||||
</div>
|
||||
<div class="flex-1 min-w-0">
|
||||
<p class="text-[10px] text-gray-500">@slot.Item2</p>
|
||||
<p class="text-xs @(item != null ? "text-white" : "text-gray-600 italic") truncate">
|
||||
@(item?.ItemDefinition?.Name ?? "Empty")
|
||||
@if (item?.CraftedItem != null)
|
||||
{
|
||||
<span class="text-cyan-400 text-[10px]">(Q@(item.CraftedItem.QualityRating)%)</span>
|
||||
}
|
||||
</p>
|
||||
</div>
|
||||
@if (item?.ItemDefinition != null)
|
||||
{
|
||||
<div class="absolute right-full mr-1 top-0 z-50 hidden group-hover:block">
|
||||
@await Html.PartialAsync("_ItemTooltip", item.ItemDefinition)
|
||||
@await Html.PartialAsync("_CharacterItemTooltip", item)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user