From cc1e3c6792747553cb1b2aa55a2a9077e3eefa2d Mon Sep 17 00:00:00 2001
From: Henry Jameson <me@hjkos.com>
Date: Mon, 9 May 2022 23:14:58 +0300
Subject: [PATCH] fix incorrect sticking in user profile page

---
 src/components/timeline/timeline.scss        | 2 +-
 src/components/user_profile/user_profile.vue | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss
index bed2a175..c7ea0dff 100644
--- a/src/components/timeline/timeline.scss
+++ b/src/components/timeline/timeline.scss
@@ -10,7 +10,7 @@
   }
 
   .conversation-heading {
-    top: calc(var(--__panel-heading-height) * 2);
+    top: calc(var(--__panel-heading-height) * var(--currentPanelStack, 2));
     z-index: 1;
   }
 
diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue
index 74d101c4..62792599 100644
--- a/src/components/user_profile/user_profile.vue
+++ b/src/components/user_profile/user_profile.vue
@@ -142,6 +142,9 @@
   flex: 2;
   flex-basis: 500px;
 
+  // No sticky header on user profile
+  --currentPanelStack: 1;
+
   .user-profile-fields {
     margin: 0 0.5em;