Skip to content

Commit

Permalink
HARMONY-1492: Center the paging links toward the bottom middle
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyinverso committed Jul 3, 2023
1 parent ff0444b commit 9608e1e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/workflow-ui/job/work-items-table.mustache.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{{/workItems}}
</tbody>
</table>
<nav aria-label="Page navigation" class="d-flex flex-column align-items-center">
<nav id="page-nav" aria-label="Page navigation" class="d-flex flex-column align-items-center">
<ul class="pagination px-0 mx-auto">
{{#links}}
<li class="page-item {{linkDisabled}}">
Expand Down
2 changes: 1 addition & 1 deletion app/views/workflow-ui/jobs/index.mustache.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
</div>
<div class="col-10">
{{> workflow-ui/jobs/jobs-table}}
<nav aria-label="Page navigation" class="d-flex flex-column align-items-center">
<nav id="page-nav" aria-label="Page navigation" class="d-flex flex-column align-items-center">
<ul class="pagination px-0 mx-auto">
{{#links}}
<li class="page-item {{linkDisabled}}">
Expand Down
14 changes: 14 additions & 0 deletions public/css/workflow-ui/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,18 @@ body {
.z-1050 {
/* Ensures that toast elements appear above most elements */
z-index: 1050;
}

#page-nav {
/* Center the paging links toward the bottom middle */
bottom: 40px;
position: fixed;
left: 50%;
transform: translate(-50%, 0);
}

#page-nav > ul > li > a {
box-shadow: 2px 3px 3px #c2bbbb;
-moz-box-shadow: 2px 3px 3px #c2bbbb;
-webkit-box-shadow: 2px 3px 3px #c2bbbb;
}

0 comments on commit 9608e1e

Please sign in to comment.