Skip to content

Commit

Permalink
Fix non-clickable 'View Build' button
Browse files Browse the repository at this point in the history
  • Loading branch information
Pansysk75 committed Dec 31, 2023
1 parent 3c99484 commit 9bfd435
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion web-app/public/builds.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,15 @@
padding: var(--spacing-small);
}

.view-button:hover:enabled , .favorite-button:hover:enabled {
.view-button:hover:enabled, .favorite-button:hover:enabled {
background-color: var(--primary-color);
color: white;
}

.view-button:hover:enabled a{
color: white;
}

/* Media query for responsive adjustments */
@media (max-width: 768px) {
.builds-element {
Expand Down
2 changes: 1 addition & 1 deletion web-app/views/builds.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
<div class="button-container">
<button class="view-button" type="button">
<span target="_top" href="build/<%= builds[i].Build_id %>">View Build</span>
<a target="_top" href="build/<%= builds[i].Build_id %>">View Build</a>
</button>
<button class="favorite-button" type="button" <%-session.Username?'':"disabled title='Login to favorite' " %> value="<%= builds[i].Build_id %>" >
<span class="material-symbols-outlined" style="font-variation-settings:'FILL' 0;"> favorite </span>
Expand Down

0 comments on commit 9bfd435

Please sign in to comment.