Merge pull request #116 from jedmund/fix-hovercard-zindex

Fix z-index on hovercards
This commit is contained in:
Justin Edmund 2023-01-02 06:40:49 -08:00 committed by GitHub
commit 1c555c99e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 31 deletions

View file

@ -1,41 +1,45 @@
.Weapon.Hovercard {
.skills {
display: flex;
flex-direction: row;
justify-content: space-between;
padding-right: $unit * 2;
.Hovercard {
z-index: 99;
.axSkill {
align-items: center;
.Weapon.HovercardContent {
.skills {
display: flex;
flex-direction: row;
justify-content: space-between;
padding-right: $unit * 2;
&.primary img {
height: 64px;
width: 64px;
}
.axSkill {
align-items: center;
display: flex;
flex-direction: row;
&.secondary {
gap: $unit * 1.5;
&.primary img {
height: 64px;
width: 64px;
}
img {
height: 36px;
width: 36px;
&.secondary {
gap: $unit * 1.5;
img {
height: 36px;
width: 36px;
}
}
span {
font-size: $font-small;
font-weight: $medium;
text-align: center;
}
}
}
span {
font-size: $font-small;
font-weight: $medium;
text-align: center;
}
.weaponKeys {
display: flex;
flex-direction: column;
font-size: $normal;
gap: calc($unit / 2);
}
}
.weaponKeys {
display: flex;
flex-direction: column;
font-size: $normal;
gap: calc($unit / 2);
}
}

View file

@ -189,9 +189,9 @@ const WeaponHovercard = (props: Props) => {
)
return (
<HoverCard.Root>
<HoverCard.Root className="Hovercard">
<HoverCard.Trigger>{props.children}</HoverCard.Trigger>
<HoverCard.Content className="Weapon Hovercard" side={hovercardSide()}>
<HoverCard.Content className="Weapon HovercardContent" side={hovercardSide()}>
<div className="top">
<div className="title">
<h4>{props.gridWeapon.object.name[locale]}</h4>