Merge pull request #908 from roboflow/cookbooks/author-avatar-zindex

fix: 🐞 cookbook z-index fix for author avatar
This commit is contained in:
James authored and GitHub committed 2024-02-19 10:00:45 +00:00
commit cf3a954416
2 files changed
+1 -3

No files matched your search

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