Skip to content

Commit

Permalink
hide slider in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Nov 7, 2024
1 parent c1c2262 commit f39e80a
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions src/components/shared/Layout/SecondaryDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,29 +97,31 @@ const SecondaryDrawer = () => {
</div>

{/* Resize System */}
<div
style={{
position: "absolute",
top: 0,
left: -RESIZE_HANDLE_WIDTH / 2,
width: `${RESIZE_HANDLE_WIDTH}px`,
height: "100%",
cursor: "ew-resize",
zIndex: 20,
}}
className={clsx(isResizing && "bg-light")}
onMouseDown={handleMouseDown}
>
{!layoutController?.isMobile && (
<div
style={{
position: "absolute",
left: RESIZE_HANDLE_WIDTH / 2,
width: "5px",
top: 0,
left: -RESIZE_HANDLE_WIDTH / 2,
width: `${RESIZE_HANDLE_WIDTH}px`,
height: "100%",
cursor: "ew-resize",
zIndex: 20,
}}
className="bg-white b-lt-1 b-rt-1 drawer-resize-bar"
/>
</div>
className={clsx(isResizing && "bg-light")}
onMouseDown={handleMouseDown}
>
<div
style={{
position: "absolute",
left: RESIZE_HANDLE_WIDTH / 2,
width: "5px",
height: "100%",
}}
className="bg-white b-lt-1 b-rt-1 drawer-resize-bar"
/>
</div>
)}

{/* Full-screen overlay during resize */}
{isResizing && (
Expand Down

0 comments on commit f39e80a

Please sign in to comment.