Skip to content

Commit b62fd7e

Browse files
committed
Fix CurrentGameCard rendering above game UI elements.
GitOrigin-RevId: a601d8f151c35567dd4040d6987a899d2b18f91a
1 parent 8089b3b commit b62fd7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hera/GameMap.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ export default class GameMap extends Component<Props, State> {
18181818
position={vector}
18191819
tileSize={tileSize}
18201820
width={map.size.width}
1821-
zIndex={zIndex + 20}
1821+
zIndex={zIndex}
18221822
/>
18231823
)
18241824
);

hera/ui/CurrentGameCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default memo(function CurrentGameCard({
181181
</div>
182182
);
183183
return inlineUI ? (
184-
<div className={inlineContainerStyle} style={{ zIndex: zIndex + 10 }}>
184+
<div className={inlineContainerStyle} style={{ zIndex: zIndex - 1 }}>
185185
{content}
186186
</div>
187187
) : (

0 commit comments

Comments
 (0)