Skip to content

Commit

Permalink
FIX: add layer modal position for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
rajtoshranjan committed May 1, 2024
1 parent c657431 commit 1e41d17
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/layer-panel/add-layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ export const AddLayer: React.FC<HTMLProps<HTMLElement>> = ({ className }) => {
Add Layer
</Button>

<Modal title="Add Raster Layer" show={show} onClose={toggle}>
<Modal
title="Add Raster Layer"
show={show}
onClose={toggle}
position={window.innerWidth < 640 ? "top-center" : "top-right"}
>
<form>
{/* Tile Overlay */}
<h6 className="text-sm text-gray-500">Tile Overlay</h6>
Expand Down

0 comments on commit 1e41d17

Please sign in to comment.