Skip to content

Commit c360115

Browse files
committed
fix: fix rare ios safari bug where hotbar would not be visible due to unclear fixed&bottom:0 css using
1 parent a8635e9 commit c360115

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

src/react/HotbarRenderApp.tsx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,28 @@ const HotbarInner = () => {
200200
<ItemName itemKey={itemKey} />
201201
<Portal>
202202
<div
203-
className='hotbar' ref={container} style={{
203+
className='hotbar-fullscreen-container'
204+
style={{
204205
position: 'fixed',
206+
top: 0,
205207
left: 0,
206-
right: 0,
208+
width: '100dvw',
209+
height: '100dvh',
210+
zIndex: hasModals ? 1 : 8,
207211
display: 'flex',
208212
justifyContent: 'center',
209-
zIndex: hasModals ? 1 : 8,
210213
pointerEvents: 'none',
211-
bottom: 'var(--hud-bottom-raw)'
212-
}}
213-
/>
214+
}}>
215+
<div
216+
className='hotbar'
217+
ref={container}
218+
style={{
219+
position: 'absolute',
220+
pointerEvents: 'none',
221+
bottom: 'var(--hud-bottom-raw)'
222+
}}
223+
/>
224+
</div>
214225
</Portal>
215226
</SharedHudVars>
216227
}

0 commit comments

Comments
 (0)