mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Make hide_tooltip actually hide the tooltip
This commit is contained in:
@@ -61,7 +61,7 @@ export function ItemDisplay({ item, slotDecoration, tooltip, advancedTooltip }:
|
||||
</svg>}
|
||||
<div class="item-slot-overlay"></div>
|
||||
</>}
|
||||
{tooltip !== false && <div class="item-tooltip" style={tooltipOffset && {
|
||||
{tooltip !== false && !resolvedItem.has('hide_tooltip') && <div class="item-tooltip" style={tooltipOffset && {
|
||||
left: (tooltipSwap ? undefined : `${tooltipOffset[0]}px`),
|
||||
right: (tooltipSwap ? `${tooltipOffset[0]}px` : undefined),
|
||||
top: `${tooltipOffset[1]}px`,
|
||||
|
||||
@@ -11,10 +11,6 @@ interface Props {
|
||||
resolver: (item: ItemStack) => ResolvedItem,
|
||||
}
|
||||
export function ItemTooltip({ item, advanced, resolver }: Props) {
|
||||
if (item.has('hide_tooltip')) {
|
||||
return <></>
|
||||
}
|
||||
|
||||
return <>
|
||||
<TextComponent component={item.getStyledHoverName()} />
|
||||
{!advanced && !item.has('custom_name') && item.is('filled_map') && item.has('map_id') && (
|
||||
|
||||
Reference in New Issue
Block a user