Skip to content

Commit 6ecf702

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
fix: Increase HUD bottom spacing on mobile to prevent cutoff
- Changed from bottom-12 to bottom-20 on mobile for better clearance - Made HUD more compact on mobile (smaller padding, min-width) - Ensures full visibility in all view modes on mobile devices
1 parent ded4658 commit 6ecf702

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/HUD.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ export function HUD({ hoveredResidue, pdbMetadata, pdbId, isLightMode }: HUDProp
2929
// Position at bottom center to avoid interfering with any viewports
3030

3131
return (
32-
<div className={`absolute bottom-12 md:bottom-6 left-1/2 -translate-x-1/2 z-10 pointer-events-none select-none transition-all duration-300 font-sans`}>
32+
<div className={`absolute bottom-20 md:bottom-6 left-1/2 -translate-x-1/2 z-10 pointer-events-none select-none transition-all duration-300 font-sans`}>
3333

3434
{/* Minimal Capsule */}
35-
<div className={`backdrop-blur-md rounded-full border ${borderColor} ${bgColor} shadow-sm px-4 py-1.5 flex items-center justify-center min-w-[120px]`}>
35+
<div className={`backdrop-blur-md rounded-full border ${borderColor} ${bgColor} shadow-sm px-3 md:px-4 py-1 md:py-1.5 flex items-center justify-center min-w-[100px] md:min-w-[120px]`}>
3636

3737
{hoveredResidue ? (
3838
<div className="flex items-center gap-3 animate-in fade-in duration-200">

0 commit comments

Comments
 (0)