Skip to content

Commit

Permalink
Hide binge sliding panel when not used
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihbaltaci committed Feb 3, 2025
1 parent 4868a43 commit dbf27b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gurubase-frontend/src/components/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,11 @@ const Content = (props) => {
)}

{/* Mobile Binge Map Sliding Panel */}
{finalBingeId &&
!isLoading &&
!streamingStatus &&
content &&
slug && (
<div
ref={slidePanel}
className={`guru-lg:hidden fixed bottom-0 left-0 right-0 border-t border-neutral-200 transition-transform duration-300 ease-in-out z-40 overflow-hidden bg-white ${
Expand Down Expand Up @@ -847,6 +852,7 @@ const Content = (props) => {
</div>
</div>
</div>
)}

{/* Overlay */}
{isBingeMapOpen && (
Expand Down

0 comments on commit dbf27b3

Please sign in to comment.