new cookbook z-index fix for author avatar

This commit is contained in:
SkalskiP committed 2024-02-19 12:37:25 +01:00
1 parent cf3a954416
commit ac7d36b215
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -55,11 +55,12 @@ document.addEventListener("DOMContentLoaded", function () {
let authorAvatarsHTML = authorDataArray.map((authorData, index) => {
const marginLeft = index === 0 ? '0' : '-10px';
const zIndex = 4 - index;
return `
<div
class="author-container"
data-login="${authorData.login}-${elementIndex}"
style="margin-left: ${marginLeft};"
style="margin-left: ${marginLeft}; z-index: ${zIndex};"
>
<a
href="https://github.com/${authorData.login}"