Experimental back button for status page

This commit is contained in:
Lim Chee Aun 2023-07-09 09:12:29 +08:00
parent db0261f8dd
commit 470f7aa353
2 changed files with 14 additions and 0 deletions

View file

@ -8,6 +8,9 @@
overflow: hidden;
white-space: nowrap;
}
.status-deck header h1 .deck-back {
margin-left: -16px;
}
.status-deck header.inview h1 {
font-weight: bold;

View file

@ -666,6 +666,17 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
</div> */}
<div class="header-grid header-grid-2">
<h1>
{!!/\/s\//i.test(snapStates.prevLocation?.pathname) && (
<button
type="button"
class="plain deck-back"
onClick={() => {
history.back();
}}
>
<Icon icon="chevron-left" size="xl" />
</button>
)}
{!heroInView && heroStatus && uiState !== 'loading' ? (
<>
<span class="hero-heading">