fix(map): tighten marker popups

This commit is contained in:
2026-06-12 14:29:18 +02:00
parent 50ae68829c
commit 5cb853b59c

View File

@@ -611,7 +611,8 @@ function htmlPage(): string {
} }
.thumb { .thumb {
width: 180px; width: min(240px, 100%);
padding: 8px;
display: grid; display: grid;
gap: 8px; gap: 8px;
} }
@@ -623,14 +624,6 @@ function htmlPage(): string {
border-radius: 0; border-radius: 0;
} }
.thumb button {
border: 0;
border-radius: 0;
padding: 8px 10px;
background: var(--accent);
color: white;
}
.leaflet-popup-content-wrapper, .leaflet-popup-content-wrapper,
.leaflet-popup-tip { .leaflet-popup-tip {
background: var(--leaflet-popup-bg); background: var(--leaflet-popup-bg);
@@ -1600,7 +1593,6 @@ function htmlPage(): string {
'<img src="' + escapeHtml(photo.thumbUrl) + '" alt="' + escapeHtml(photo.name) + '" />' + '<img src="' + escapeHtml(photo.thumbUrl) + '" alt="' + escapeHtml(photo.name) + '" />' +
'<strong>' + escapeHtml(photo.name) + '</strong>' + '<strong>' + escapeHtml(photo.name) + '</strong>' +
'<small>' + escapeHtml(formatDate(photo.capturedAt)) + '</small>' + '<small>' + escapeHtml(formatDate(photo.capturedAt)) + '</small>' +
'<button type="button" data-open="' + escapeHtml(photo.id) + '">Open</button>' +
'</div>' '</div>'
); );
@@ -1988,16 +1980,6 @@ function htmlPage(): string {
} }
} }
document.addEventListener("click", (event) => {
const target = event.target;
if (target instanceof HTMLElement && target.dataset.open) {
const photo = state.photos.find((item) => item.id === target.dataset.open);
if (photo) {
openOverlay(photo);
}
}
});
importButton.addEventListener("click", () => { importButton.addEventListener("click", () => {
void importFromShare(); void importFromShare();
}); });