카카오 길찾기 지도 높이 420→520px(경로 링크만) — 왼쪽 길찾기 패널이 지도 절반을 가려 경로선이 좁게 보임

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Opus 5.5 committed 2026-10-23 15:43:36 +09:00
1 parent b3171cbd8f
commit 61d0de5530
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -841,6 +841,7 @@
.md-img-err { display: inline-block; color: var(--muted, #888); font-size: 13px; padding: 4px 8px; background: var(--surface2, #f0f0f0); border-radius: 6px; margin: 4px 0; }
.map-embed-wrap { margin: 10px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line, #dde3f0); }
.map-embed { width: 100%; height: 420px; border: none; display: block; }
.map-embed.map-embed-route { height: 520px; } /* 카카오 길찾기: 왼쪽 패널이 지도 절반을 가려 경로가 보이게 더 높게 */
.map-embed-link { padding: 6px 12px; background: var(--surface2, #f5f5f7); font-size: 12px; }
.map-embed-link a { color: var(--accent, #1a73e8); text-decoration: none; }
.map-embed-link a:hover { text-decoration: underline; }
+2 -1
View File
@@ -276,7 +276,8 @@ function renderMarkdown(text, opts) {
// 20자 이내 이름표는 떼고 지도로 띄운다.
html = html.replace(/((?:^|\n)[ \t]*)(?:[^\n<>:]{1,20}:[ \t]*)?(https:\/\/map\.kakao\.com\/link\/(?:map|search|to|by)\/[^\s<>")\n]+)([ \t]*)(?=\n|$)/gim, function(m, pre, url, post) {
var safeEmbed = url.replace(/"/g, '&quot;');
return pre + '<div class="map-embed-wrap"><iframe class="map-embed" src="' + safeEmbed + '" allowfullscreen loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe><div class="map-embed-link"><a href="' + safeEmbed + '" target="_blank" rel="noopener">카카오맵에서 열기 ↗</a></div></div>' + post;
var routeCls = /\/link\/(?:by|to)\//.test(url) ? ' map-embed-route' : '';
return pre + '<div class="map-embed-wrap"><iframe class="map-embed' + routeCls + '" src="' + safeEmbed + '" allowfullscreen loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe><div class="map-embed-link"><a href="' + safeEmbed + '" target="_blank" rel="noopener">카카오맵에서 열기 ↗</a></div></div>' + post;
});
// Google Maps URLs on their own line → inline iframe