mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 18:55:44 +03:00
Experimental back button for status page
This commit is contained in:
parent
db0261f8dd
commit
470f7aa353
2 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue