new cookbook z-index fix for author avatar

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

View File

@ -3,5 +3,6 @@ template: cookbooks.html
comments: true
status: new
hide:
- navigation
- toc
---

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}"