Skip to content

Commit 9f554d2

Browse files
author
Prime
committed
fix: reels nav overlap, reels icon white box, hide bottom nav on reels
1 parent 4a51504 commit 9f554d2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/BottomNav.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const TABS = [
3838
path: "/reels",
3939
label: "Reels",
4040
icon: (active) => (
41-
<svg viewBox="0 0 24 24" width="26" height="26" fill={active ? "white" : "none"} stroke="white" strokeWidth="2" strokeLinecap="round">
42-
<rect x="2" y="2" width="20" height="20" rx="3"/>
41+
<svg viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="white" strokeWidth={active ? "2.5" : "2"} strokeLinecap="round" strokeLinejoin="round">
42+
<rect x="2" y="2" width="20" height="20" rx="3" fill={active ? "rgba(255,255,255,0.15)" : "none"}/>
4343
<circle cx="12" cy="12" r="3"/>
4444
<line x1="2" y1="7" x2="22" y2="7"/>
4545
<line x1="2" y1="17" x2="22" y2="17"/>
@@ -60,7 +60,7 @@ const TABS = [
6060
}
6161
];
6262

63-
const HIDDEN_PATHS = ["/login", "/register", "/chat/", "/group/", "/comments/"];
63+
const HIDDEN_PATHS = ["/login", "/register", "/chat/", "/group/", "/comments/", "/reels"];
6464

6565
export default function BottomNav() {
6666
const navigate = useNavigate();

src/pages/Reels.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export default function Reels() {
310310
const gradients = ["linear-gradient(135deg,#7c3aed,#db2777)","linear-gradient(135deg,#f59e0b,#ef4444)","linear-gradient(135deg,#10b981,#3b82f6)"];
311311

312312
return (
313-
<div style={{background:"#000",height:"100vh",overflow:"hidden",position:"relative"}}>
313+
<div style={{background:"#000",height:"100vh",overflow:"hidden",position:"relative",paddingBottom:"0"}}>
314314

315315
{/* Header */}
316316
<div style={{position:"fixed",top:0,left:0,right:0,zIndex:100,padding:"0.75rem 1rem",display:"flex",justifyContent:"space-between",alignItems:"center"}}>
@@ -330,7 +330,7 @@ export default function Reels() {
330330
<button onClick={()=>navigate("/upload")} style={{background:"linear-gradient(135deg,#7c3aed,#db2777)",border:"none",borderRadius:"8px",color:"white",padding:"0.5rem 1rem",cursor:"pointer",marginTop:"1rem"}}>Upload Video</button>
331331
</div>
332332
) : posts.map((p, i) => (
333-
<div key={p.id||i} style={{height:"100vh",width:"100vw",scrollSnapAlign:"start",scrollSnapStop:"always",position:"relative",background:"#000",overflow:"hidden"}}>
333+
<div key={p.id||i} style={{height:"100vh",width:"100vw",scrollSnapAlign:"start",scrollSnapStop:"always",position:"relative",background:"#000",overflow:"hidden",boxSizing:"border-box"}}>
334334

335335
{/* Media */}
336336
{p.mediaUrl ? (
@@ -365,7 +365,7 @@ export default function Reels() {
365365
<div style={{position:"absolute",inset:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 25%, transparent 50%, rgba(0,0,0,0.6) 75%, rgba(0,0,0,0.92) 100%)",zIndex:1,pointerEvents:"none"}} />
366366

367367
{/* Right Actions */}
368-
<div style={{position:"absolute",right:"1rem",bottom:"5.5rem",display:"flex",flexDirection:"column",alignItems:"center",gap:"1.5rem",zIndex:10}}>
368+
<div style={{position:"absolute",right:"1rem",bottom:"5rem",display:"flex",flexDirection:"column",alignItems:"center",gap:"1.5rem",zIndex:10}}>
369369
{/* Like */}
370370
<div onClick={()=>handleLike(p.id)} style={{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.3rem",cursor:"pointer"}}>
371371
<span style={{fontSize:"1.8rem",filter:liked[p.id]?"drop-shadow(0 0 6px red)":"none"}}>{liked[p.id]?"❤️":"🤍"}</span>
@@ -388,7 +388,7 @@ export default function Reels() {
388388
</div>
389389

390390
{/* Bottom Info */}
391-
<div style={{position:"absolute",bottom:"4rem",left:"1rem",right:"5rem",zIndex:10}}>
391+
<div style={{position:"absolute",bottom:"3.5rem",left:"1rem",right:"5rem",zIndex:10}}>
392392
<div style={{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"}}>
393393
{/* Tappable Avatar */}
394394
<div onClick={()=>openProfileCard(p.username)} style={{cursor:"pointer",flexShrink:0}}>

0 commit comments

Comments
 (0)