Skip to content

The open alternative to Salesforce, designed for AI.

fix(front): render pinned command-menu buttons inline in page header (#22446)

Weiko63a0b0ab9613
diff --git a/packages/twenty-front/src/modules/ui/layout/page/components/PageCardHeader.tsx b/packages/twenty-front/src/modules/ui/layout/page/components/PageCardHeader.tsx
index 1e0e3729402..9f598b0f807 100644
--- a/packages/twenty-front/src/modules/ui/layout/page/components/PageCardHeader.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/page/components/PageCardHeader.tsx
@@ -31,7 +31,9 @@ const StyledHeader = styled.div<{ centerTitle?: boolean }>`
column-gap: ${themeCssVariables.spacing[2]};
display: grid;
grid-template-columns: ${({ centerTitle }) =>
- centerTitle ? 'minmax(0, 1fr) auto minmax(0, 1fr)' : 'minmax(0, 1fr) auto'};
+ centerTitle
+ ? 'minmax(0, 1fr) auto minmax(0, 1fr)'
+ : 'minmax(0, auto) minmax(0, 1fr)'};
min-height: ${SIDE_PANEL_TOP_BAR_HEIGHT}px;
padding: 0 ${themeCssVariables.spacing[3]};
width: 100%;