Fix z-index on entity units to fix hovercards
This commit is contained in:
parent
1c555c99e2
commit
3b670032c3
6 changed files with 149 additions and 145 deletions
|
|
@ -69,6 +69,7 @@ const CharacterHovercard = (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<HoverCard.Root>
|
<HoverCard.Root>
|
||||||
<HoverCard.Trigger>{props.children}</HoverCard.Trigger>
|
<HoverCard.Trigger>{props.children}</HoverCard.Trigger>
|
||||||
|
<HoverCard.Portal>
|
||||||
<HoverCard.Content className="Weapon Hovercard">
|
<HoverCard.Content className="Weapon Hovercard">
|
||||||
<div className="top">
|
<div className="top">
|
||||||
<div className="title">
|
<div className="title">
|
||||||
|
|
@ -116,6 +117,7 @@ const CharacterHovercard = (props: Props) => {
|
||||||
</a>
|
</a>
|
||||||
<HoverCard.Arrow />
|
<HoverCard.Arrow />
|
||||||
</HoverCard.Content>
|
</HoverCard.Content>
|
||||||
|
</HoverCard.Portal>
|
||||||
</HoverCard.Root>
|
</HoverCard.Root>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ const SummonHovercard = (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<HoverCard.Root>
|
<HoverCard.Root>
|
||||||
<HoverCard.Trigger>{props.children}</HoverCard.Trigger>
|
<HoverCard.Trigger>{props.children}</HoverCard.Trigger>
|
||||||
|
<HoverCard.Portal>
|
||||||
<HoverCard.Content className="Weapon Hovercard">
|
<HoverCard.Content className="Weapon Hovercard">
|
||||||
<div className="top">
|
<div className="top">
|
||||||
<div className="title">
|
<div className="title">
|
||||||
|
|
@ -90,6 +91,7 @@ const SummonHovercard = (props: Props) => {
|
||||||
</a>
|
</a>
|
||||||
<HoverCard.Arrow />
|
<HoverCard.Arrow />
|
||||||
</HoverCard.Content>
|
</HoverCard.Content>
|
||||||
|
</HoverCard.Portal>
|
||||||
</HoverCard.Root>
|
</HoverCard.Root>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@
|
||||||
img {
|
img {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 2;
|
z-index: 0;
|
||||||
|
|
||||||
&.Placeholder {
|
&.Placeholder {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
.Hovercard {
|
.Weapon.Hovercard {
|
||||||
z-index: 99;
|
|
||||||
|
|
||||||
.Weapon.HovercardContent {
|
|
||||||
.skills {
|
.skills {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
@ -42,4 +39,3 @@
|
||||||
gap: calc($unit / 2);
|
gap: calc($unit / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -189,9 +189,10 @@ const WeaponHovercard = (props: Props) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HoverCard.Root className="Hovercard">
|
<HoverCard.Root>
|
||||||
<HoverCard.Trigger>{props.children}</HoverCard.Trigger>
|
<HoverCard.Trigger>{props.children}</HoverCard.Trigger>
|
||||||
<HoverCard.Content className="Weapon HovercardContent" side={hovercardSide()}>
|
<HoverCard.Portal>
|
||||||
|
<HoverCard.Content className="Weapon Hovercard" side={hovercardSide()}>
|
||||||
<div className="top">
|
<div className="top">
|
||||||
<div className="title">
|
<div className="title">
|
||||||
<h4>{props.gridWeapon.object.name[locale]}</h4>
|
<h4>{props.gridWeapon.object.name[locale]}</h4>
|
||||||
|
|
@ -235,7 +236,8 @@ const WeaponHovercard = (props: Props) => {
|
||||||
props.gridWeapon.ax[0].strength
|
props.gridWeapon.ax[0].strength
|
||||||
? axSection
|
? axSection
|
||||||
: ''}
|
: ''}
|
||||||
{props.gridWeapon.weapon_keys && props.gridWeapon.weapon_keys.length > 0
|
{props.gridWeapon.weapon_keys &&
|
||||||
|
props.gridWeapon.weapon_keys.length > 0
|
||||||
? keysSection
|
? keysSection
|
||||||
: ''}
|
: ''}
|
||||||
<a className={`Button ${tintElement}`} href={wikiUrl} target="_new">
|
<a className={`Button ${tintElement}`} href={wikiUrl} target="_new">
|
||||||
|
|
@ -243,6 +245,7 @@ const WeaponHovercard = (props: Props) => {
|
||||||
</a>
|
</a>
|
||||||
<HoverCard.Arrow />
|
<HoverCard.Arrow />
|
||||||
</HoverCard.Content>
|
</HoverCard.Content>
|
||||||
|
</HoverCard.Portal>
|
||||||
</HoverCard.Root>
|
</HoverCard.Root>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
z-index: 0;
|
||||||
|
|
||||||
@include breakpoint(tablet) {
|
@include breakpoint(tablet) {
|
||||||
min-height: auto;
|
min-height: auto;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue