From 470f7aa353cb8f6cf3d941c29ebe5956b0013c1b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 9 Jul 2023 09:12:29 +0800 Subject: [PATCH] Experimental back button for status page --- src/pages/status.css | 3 +++ src/pages/status.jsx | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/pages/status.css b/src/pages/status.css index 79848e80..b5fa15eb 100644 --- a/src/pages/status.css +++ b/src/pages/status.css @@ -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; diff --git a/src/pages/status.jsx b/src/pages/status.jsx index 4762d5ec..0ceaf363 100644 --- a/src/pages/status.jsx +++ b/src/pages/status.jsx @@ -666,6 +666,17 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) { */}

+ {!!/\/s\//i.test(snapStates.prevLocation?.pathname) && ( + + )} {!heroInView && heroStatus && uiState !== 'loading' ? ( <>