Skip to content

Commit 6819804

Browse files
committed
Manage profile adjustments long overdue
1 parent af335c0 commit 6819804

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/src/components/user/ProfileLayout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ export const ProfileLayout: React.FC<ProfileLayoutProps> = ({
5959
const displayTitle = user.username;
6060
const linkedAccounts = (user.connectedAccounts || []).filter(a => a.visible);
6161

62-
const containerClasses = "max-w-[112rem] px-4 sm:px-12 md:px-16 lg:px-28";
62+
// DYNAMIC CONTAINER CLASSES: Aligns with the m-6 (24px) margin of the empty banner dashed box in edit mode
63+
const containerClasses = isEditing
64+
? "max-w-[112rem] px-6"
65+
: "max-w-[112rem] px-4 sm:px-12 md:px-16 lg:px-28";
6366

6467
const handleFileSelect = (e: React.ChangeEvent<HTMLInputElement>, type: 'banner' | 'avatar') => {
6568
if (!e.target.files || !e.target.files.length) return;

0 commit comments

Comments
 (0)