From 3f700c893c5cafe68b5fca445e7c475e76cc0e8b Mon Sep 17 00:00:00 2001 From: Gaspard Jankowiak Date: Wed, 2 Oct 2024 19:56:31 +0200 Subject: [PATCH] [css] tweak for missing photos --- directory.css | 2 ++ directory.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/directory.css b/directory.css index c720b12..a70397c 100644 --- a/directory.css +++ b/directory.css @@ -10,6 +10,8 @@ .kf-trombi_trombi_8 { grid-template-columns: repeat(8, 1fr); } .hidden { display: none; } + +.kf-trombi_card { align-content: end; } .kf-trombi_trombi_img { filter: grayscale(100%) contrast(150%); } diff --git a/directory.js b/directory.js index b9e8192..965b6e0 100644 --- a/directory.js +++ b/directory.js @@ -58,7 +58,7 @@ function generateCard(student, col) { const url = `/kfu_online/pl/ui/$ctx/wbstudkart.wbShowImage?pOrgNr=${student.ids.org}&pStPersonNr=${student.ids.perso}&pType=U` const d = document.createElement("div"); - d.style.gridColumn = "auto"; + d.classList.add("kf-trombi_card"); const img = document.createElement("img"); img.classList.add("kf-trombi_trombi_img");