diff --git a/web-ui/css/styles.css b/web-ui/css/styles.css index eff68c7..db3ffeb 100644 --- a/web-ui/css/styles.css +++ b/web-ui/css/styles.css @@ -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; } diff --git a/web-ui/js/app/markdown.js b/web-ui/js/app/markdown.js index a29c9c8..73db3b7 100644 --- a/web-ui/js/app/markdown.js +++ b/web-ui/js/app/markdown.js @@ -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, '"'); - return pre + '
' + post; + var routeCls = /\/link\/(?:by|to)\//.test(url) ? ' map-embed-route' : ''; + return pre + '' + post; }); // Google Maps URLs on their own line → inline iframe