I want to show a React Leaflet Marker popup on the right side of the map screen, but it always sticks to the left side of the screen. Therefore, I would appreciate any help in getting this done. Below is a screenshot of the current state of the popup.
this is my CSS that i tried.
.leaflet-popup {
transform: none !important;
position: absolute !important;
top: 1px !important;
bottom: 0px !important;
right: 0% !important;
display: flex !important;
align-items: right !important;
justify-items: right !important;
}
.leaflet-container .leaflet-popup-content-wrapper .popup_modle {
z-index: 1000;
position: absolute;
right: 0 !important;
height: 400px;
width: 300px;
top: -1px;
background-color: rgba(5, 5, 5, 0.7) !important;
background: linear-gradient(
60deg,
rgba(134, 134, 134, 0.7) 0%,
rgba(0, 0, 0, 0.7) 59%
) !important;
align-items: right !important;
justify-items: right !important;
justify-content: right !important;
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
}
Thanks
