From ce052552b5bd80b4554a14582d1c3a5570b5ccce Mon Sep 17 00:00:00 2001 From: akash Date: Sat, 21 Oct 2023 23:18:49 +0530 Subject: [PATCH] fixed alignment of the contributors [issue #250] --- contri.css | 13 +++++++++++++ contributers.js | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/contri.css b/contri.css index 198e4b8..0603a71 100644 --- a/contri.css +++ b/contri.css @@ -50,15 +50,27 @@ nav.stroke ul li a:hover:after { align-items: center; flex-wrap: wrap; gap: 25px; + flex-wrap: wrap; + justify-content: flex-start; } .contributor{ + min-width: 150px; + max-width: 150px; display: flex; flex-direction: column; color: #fff; align-items: flex-start; gap: 8px; } + +.contributor h3{ + width: 100%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + #container-header{ display: flex; align-items: center; @@ -76,6 +88,7 @@ nav.stroke ul li a:hover:after { align-items: flex-start; color: #fff; gap: 25px; + padding-top: 16px; } .avatar{ width: 130px; diff --git a/contributers.js b/contributers.js index 84b8ba1..5d3f243 100644 --- a/contributers.js +++ b/contributers.js @@ -30,8 +30,8 @@ document.addEventListener('DOMContentLoaded', () => { contributorElement.appendChild(avatar) contributorElement.appendChild(userName) - contributorElement.appendChild(userLink) contributorElement.appendChild(userContributions) + contributorElement.appendChild(userLink) container.appendChild(contributorElement);