Skip to content

Commit

Permalink
header h1 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyclenerd committed Jan 27, 2025
1 parent b6b57a1 commit edfd6a7
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -541,24 +541,12 @@ $MY_AUTOREFRESH_TEXT
</head>
<body>
<div class="container">
<div class="pb-2 mt-5 mb-2 border-bottom">
<h1>
$MY_STATUS_TITLE
<span class="float-end d-none d-sm-block">
<a href="$MY_HOMEPAGE_URL" class="btn btn-primary" role="button">
<i class="fa-solid fa-house-chimney"></i>
$MY_HOMEPAGE_TITLE
</a>
</span>
</h1>
</div>
<div class="d-sm-none d-md-none d-lg-none d-xl-none my-3">
<a href="$MY_HOMEPAGE_URL" class="btn btn-primary" role="button">
<i class="fa-solid fa-house-chimney"></i>
$MY_HOMEPAGE_TITLE
</a>
</div>
<header class="d-flex align-items-center justify-content-center py-3 mb-4 border-bottom">
<h1 class="col-md-8">$MY_STATUS_TITLE</h1>
<div class="col-md-4 text-end d-none d-md-block">
<a href="$MY_HOMEPAGE_URL" class="btn btn-primary" role="button"><i class="fa-solid fa-house-chimney"></i> $MY_HOMEPAGE_TITLE</a>
</div>
</header>
EOF
}

Expand Down Expand Up @@ -730,7 +718,7 @@ function item_history() {
echo "$MY_HISTORY_DATE_TIME"
echo '</small>'
echo '</span>'
printf '<span class="badge badge-pill badge-dark"><i class="fa-solid fa-xmark"></i></i> '
printf '<span class="badge badge-pill badge-dark"><i class="fa-solid fa-xmark"></i> '
if [[ "$MY_HISTORY_DOWN_TIME" -gt "1" ]]; then
printf "%.0f min</span>" "$((MY_HISTORY_DOWN_TIME/60))"
else
Expand Down

0 comments on commit edfd6a7

Please sign in to comment.