diff --git a/app/(home-pages)/p/[didOrHandle]/ProfileLayout.tsx b/app/(home-pages)/p/[didOrHandle]/ProfileLayout.tsx
index 9661c35c..a298dec3 100644
--- a/app/(home-pages)/p/[didOrHandle]/ProfileLayout.tsx
+++ b/app/(home-pages)/p/[didOrHandle]/ProfileLayout.tsx
@@ -3,26 +3,22 @@
import { useCardBorderHidden } from "components/Pages/useCardBorderHidden";
export function ProfileLayout(props: { children: React.ReactNode }) {
- let borderHidden = useCardBorderHidden();
+ let cardBorderHidden = useCardBorderHidden();
return (
-
-
- {props.children}
-
+ >
+ {props.children}
);
}
diff --git a/app/(home-pages)/p/[didOrHandle]/ProfileTabs.tsx b/app/(home-pages)/p/[didOrHandle]/ProfileTabs.tsx
index 2b9f32ce..4609a0a1 100644
--- a/app/(home-pages)/p/[didOrHandle]/ProfileTabs.tsx
+++ b/app/(home-pages)/p/[didOrHandle]/ProfileTabs.tsx
@@ -13,13 +13,14 @@ export const ProfileTabs = (props: { didOrHandle: string }) => {
const currentTab = (segment || "posts") as ProfileTabType;
const [scrollPosWithinTabContent, setScrollPosWithinTabContent] = useState(0);
const [headerHeight, setHeaderHeight] = useState(0);
-
useEffect(() => {
let headerHeight =
document.getElementById("profile-header")?.clientHeight || 0;
setHeaderHeight(headerHeight);
- const profileContent = document.getElementById("profile-content");
+ const profileContent = cardBorderHidden
+ ? document.getElementById("home-content")
+ : document.getElementById("profile-content");
const handleScroll = () => {
if (profileContent) {
setScrollPosWithinTabContent(
@@ -37,8 +38,7 @@ export const ProfileTabs = (props: { didOrHandle: string }) => {
}, []);
const baseUrl = `/p/${props.didOrHandle}`;
- const bgColor = "255 255 255";
- // const bgColor = !cardBorderHidden ? "var(--bg-leaflet)" : "var(--bg-page)";
+ const bgColor = cardBorderHidden ? "var(--bg-leaflet)" : "var(--bg-page)";
return (