Merge pull request #922 from roboflow/cookbooks/style-update

new cookbook z-index fix for author avatar
This commit is contained in:
Piotr Skalski authored and GitHub committed 2024-02-19 12:41:38 +01:00
commit 5ffb3424f3
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -3,5 +3,6 @@ template: cookbooks.html
comments: true
status: new
hide:
- navigation
- toc
---
+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}"