From 020f90c2b06f335b3ec1b6aec039fbc45bd3a2ff Mon Sep 17 00:00:00 2001 From: Rob Bos Date: Sat, 26 Jun 2021 20:13:27 +0200 Subject: [PATCH] Handling empty authors --- script.js | 2 +- style.css | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index c3a19653..9f91623c 100644 --- a/script.js +++ b/script.js @@ -23,7 +23,7 @@ function addActionPanel(mainElement, action) { panel.id = action.repoName panel.innerHTML = '
Repository:'+action.repoName+'
'; panel.innerHTML += '
Action:'+action.action.name+'
'; - panel.innerHTML += '
Author:'+action.action.author+'
'; + panel.innerHTML += '
Author:'+(action.action.author || "Not set") +'
'; panel.innerHTML += '
Description:
'+action.action.description+'
'; mainElement.appendChild(panel); diff --git a/style.css b/style.css index b75cba6b..bdb7c770 100644 --- a/style.css +++ b/style.css @@ -127,11 +127,10 @@ article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, display: block; } -@media screen and (min-width: 42em) and (max-width: 64em){ .main-content { padding: 2rem 4rem; font-size: 1.1rem; -}} +} #main { clear: both;