Skip to content

Commit

Permalink
Handling empty authors
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Jun 26, 2021
1 parent 1af751e commit 020f90c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function addActionPanel(mainElement, action) {
panel.id = action.repoName
panel.innerHTML = '<div class="line"><span class="name">Repository:</span><span class="value">'+action.repoName+'</span></div>';
panel.innerHTML += '<div class="line"><span class="name">Action:</span><span class="value">'+action.action.name+'</span></div>';
panel.innerHTML += '<div class="line"><span class="name">Author:</span><span class="value">'+action.action.author+'</span></div>';
panel.innerHTML += '<div class="line"><span class="name">Author:</span><span class="value">'+(action.action.author || "Not set") +'</span></div>';
panel.innerHTML += '<div class="line"><span class="name">Description:</span><div class="value description">'+action.action.description+'</div></div>';

mainElement.appendChild(panel);
Expand Down
3 changes: 1 addition & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 020f90c

Please # to comment.