diff --git a/editor/css/trotamundos.css b/editor/css/trotamundos.css index 71faf22..bcd4ee1 100644 --- a/editor/css/trotamundos.css +++ b/editor/css/trotamundos.css @@ -103,6 +103,7 @@ a:visited { display: flex; flex-direction: row; align-items: center; + justify-content: center; cursor: pointer; } diff --git a/editor/icons/collapse.png b/editor/icons/collapse.png index b86e5d7..4f8da4e 100644 Binary files a/editor/icons/collapse.png and b/editor/icons/collapse.png differ diff --git a/editor/icons/expand.png b/editor/icons/expand.png index 3e205f6..e79c30b 100644 Binary files a/editor/icons/expand.png and b/editor/icons/expand.png differ diff --git a/editor/js/trotamundos.js b/editor/js/trotamundos.js index 772c5c2..819e1c5 100644 --- a/editor/js/trotamundos.js +++ b/editor/js/trotamundos.js @@ -463,6 +463,10 @@ function reloadSection(data) { loadImageFromDB(data.imageId, photo.id); } else if ('subtitle' == data.type) { img.src = 'icons/title.png'; + + section.dataset.sectionId = data.id; + section.addEventListener('click', toggleSubtitleEv, true); + text = document.createElement('div'); text.classList.add('container'); text.classList.add('text-container'); @@ -479,11 +483,7 @@ function reloadSection(data) { } else { expand.src = 'icons/collapse.png'; } - - expand.classList.add('icon'); - expand.dataset.sectionId = data.id; - expand.addEventListener('click', toggleSubtitleEv, false); - + //expand.classList.add('icon'); section.appendChild(img); section.appendChild(text); section.appendChild(expand);