From 99889adf1edd660b7f0161de3e2295c5d03a3b87 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Sat, 29 Aug 2026 14:41:06 +0330 Subject: [PATCH] fix(ui): move profile action button outside of main container Relocate the profile edit/lock button from inside the `
` element to outside of it. This prevents the `page-slide-enter` animation's `will-change: transform` property from creating a new containing block, which was causing layout issues with `position: fixed` elements. --- .../finding-match/finding-match-client.tsx | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/src/app/finding-match/finding-match-client.tsx b/src/app/finding-match/finding-match-client.tsx index abc9f47..d330b89 100644 --- a/src/app/finding-match/finding-match-client.tsx +++ b/src/app/finding-match/finding-match-client.tsx @@ -189,30 +189,32 @@ export default function FindingMatchClient() { onGetAdvisor={openAdvisors} /> - - - {profile?.can_edit_profile === false ? ( -
-
- ) : ( - - )} -
+ {/* Outside
: page-slide-enter sets will-change:transform which makes + main the containing block for position:fixed and narrows the button. */} + + {profile?.can_edit_profile === false ? ( +
+
+ ) : ( + + )} +
+