mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06:23 +01: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;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
.status-deck header h1 .deck-back {
|
||||||
|
margin-left: -16px;
|
||||||
|
}
|
||||||
|
|
||||||
.status-deck header.inview h1 {
|
.status-deck header.inview h1 {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -666,6 +666,17 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
|
||||||
</div> */}
|
</div> */}
|
||||||
<div class="header-grid header-grid-2">
|
<div class="header-grid header-grid-2">
|
||||||
<h1>
|
<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' ? (
|
{!heroInView && heroStatus && uiState !== 'loading' ? (
|
||||||
<>
|
<>
|
||||||
<span class="hero-heading">
|
<span class="hero-heading">
|
||||||
|
|
Loading…
Reference in a new issue