Selfies: Difference between revisions
From Treeverse
More actions
No edit summary |
No edit summary |
||
| Line 33: | Line 33: | ||
#toast.show{opacity:1} | #toast.show{opacity:1} | ||
.tv-popup .leaflet-popup-content{margin:10px 12px; width:360px !important; max-width:360px !important} | .tv-popup .leaflet-popup-content{margin:10px 12px; width:360px !important; max-width:360px !important} | ||
.tv-popup .leaflet-popup-content img{display:block;width:100%;height:auto;border-radius:6px;margin-top:6px} | .tv-popup .leaflet-popup-content img{display:block;width:100%;height:auto;border-radius:6px;margin-top:6px} | ||
| Line 87: | Line 86: | ||
map.fitBounds(bounds); | map.fitBounds(bounds); | ||
// After fitting, force center near | // After fitting, force center near RIGHT edge | ||
setTimeout(() => { | setTimeout(() => { | ||
try { | try { | ||
const z = map.getZoom(); | const z = map.getZoom(); | ||
map.setView([h/2, | map.setView([h/2, w], z, { animate:false }); | ||
} catch(e) {} | } catch(e) {} | ||
}, 0); | }, 0); | ||