fix(arrows): insert strip-controls after wrap, not inside it
Dots moved inside journal-photo-wrap (overflow:hidden) earlier, so controls were being clipped. Now inserts after the wrap element. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
@@ -66,7 +66,8 @@
|
|||||||
controls.className = 'strip-controls';
|
controls.className = 'strip-controls';
|
||||||
controls.appendChild(prev);
|
controls.appendChild(prev);
|
||||||
controls.appendChild(next);
|
controls.appendChild(next);
|
||||||
dots.insertAdjacentElement('afterend', controls);
|
var wrap = strip.closest('.journal-photo-wrap');
|
||||||
|
(wrap || dots).insertAdjacentElement('afterend', controls);
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user