There was an error while loading. Please reload this page.
1 parent af335c0 commit 6819804Copy full SHA for 6819804
1 file changed
frontend/src/components/user/ProfileLayout.tsx
@@ -59,7 +59,10 @@ export const ProfileLayout: React.FC<ProfileLayoutProps> = ({
59
const displayTitle = user.username;
60
const linkedAccounts = (user.connectedAccounts || []).filter(a => a.visible);
61
62
- const containerClasses = "max-w-[112rem] px-4 sm:px-12 md:px-16 lg:px-28";
+ // 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";
66
67
const handleFileSelect = (e: React.ChangeEvent<HTMLInputElement>, type: 'banner' | 'avatar') => {
68
if (!e.target.files || !e.target.files.length) return;
0 commit comments