update frontend
This commit is contained in:
parent
86d6f153c6
commit
0989edbd09
|
|
@ -345,6 +345,7 @@ export default function MapView({
|
|||
<div ref={containerRef} className="map-container" />
|
||||
{status && <div className="map-status">{status}</div>}
|
||||
|
||||
{/* === TOP OVERLAY: Search + 2 boutons === */}
|
||||
<div className="map-overlay map-overlay-top">
|
||||
<form
|
||||
className="sw-searchbar"
|
||||
|
|
@ -376,9 +377,24 @@ export default function MapView({
|
|||
) : null}
|
||||
</form>
|
||||
|
||||
<button className="chip-pill" onClick={handleOpenCreate}>
|
||||
Place your wire
|
||||
</button>
|
||||
<div className="map-top-buttons">
|
||||
<button
|
||||
className="chip-pill"
|
||||
type="button"
|
||||
onClick={handleFlyToMe}
|
||||
disabled={!userPosition}
|
||||
>
|
||||
My spot
|
||||
</button>
|
||||
|
||||
<button
|
||||
className="chip-pill"
|
||||
type="button"
|
||||
onClick={handleOpenCreate}
|
||||
>
|
||||
Place your wire
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="map-overlay map-overlay-left">
|
||||
|
|
@ -410,11 +426,7 @@ export default function MapView({
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div className="map-overlay map-overlay-myloc">
|
||||
<button className="chip-pill" disabled={!userPosition} onClick={handleFlyToMe}>
|
||||
My spot
|
||||
</button>
|
||||
</div>
|
||||
{/* On n'a plus besoin du bouton My spot séparé en bas, il est en haut maintenant */}
|
||||
|
||||
{isCreating && (
|
||||
<div className="map-overlay map-crosshair">
|
||||
|
|
|
|||
|
|
@ -164,3 +164,12 @@ body[data-theme="light"] .sw-search-clear{
|
|||
}
|
||||
}
|
||||
/* SW_SEARCHBAR:END */
|
||||
|
||||
/* SW_MAP_TOP_BUTTONS: deux boutons à côté de la search bar */
|
||||
.map-top-buttons{
|
||||
display:flex;
|
||||
gap:.45rem;
|
||||
flex-wrap:wrap;
|
||||
align-items:center;
|
||||
justify-content:center;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue