Skip to content

Commit

Permalink
Fix CurrentGameCard rendering above game UI elements.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: a601d8f151c35567dd4040d6987a899d2b18f91a
  • Loading branch information
cpojer committed May 19, 2024
1 parent 8089b3b commit b62fd7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hera/GameMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ export default class GameMap extends Component<Props, State> {
position={vector}
tileSize={tileSize}
width={map.size.width}
zIndex={zIndex + 20}
zIndex={zIndex}
/>
)
);
Expand Down
2 changes: 1 addition & 1 deletion hera/ui/CurrentGameCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default memo(function CurrentGameCard({
</div>
);
return inlineUI ? (
<div className={inlineContainerStyle} style={{ zIndex: zIndex + 10 }}>
<div className={inlineContainerStyle} style={{ zIndex: zIndex - 1 }}>
{content}
</div>
) : (
Expand Down

0 comments on commit b62fd7e

Please sign in to comment.