Skip to content

The open alternative to Salesforce, designed for AI.

Drop the frame border around app widgets (#28146)

nitin029692d06908
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetContentFrame.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetContentFrame.tsx
index 5b54368d148..640af64e8a6 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetContentFrame.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetContentFrame.tsx
@@ -1,15 +1,6 @@
import { styled } from '@linaria/react';
import { themeCssVariables } from 'twenty-ui/theme';
-// Containment boundary for third-party widget content, which the page cannot
-// style and must not let bleed into its neighbours.
-export const StyledWidgetContentFrame = styled.div`
- border: 1px solid ${themeCssVariables.border.color.medium};
- border-radius: ${themeCssVariables.border.radius.md};
- box-sizing: border-box;
- width: 100%;
-`;
-
export const StyledWidgetTableOutline = styled.div`
border: 1px solid ${themeCssVariables.border.color.light};
border-radius: ${themeCssVariables.border.radius.sm};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/front-component/components/FrontComponentWidgetRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/front-component/components/FrontComponentWidgetRenderer.tsx
index 2cdf3395ef2..5dcf060bfac 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/front-component/components/FrontComponentWidgetRenderer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/front-component/components/FrontComponentWidgetRenderer.tsx
@@ -8,20 +8,21 @@ import { usePageLayoutContentContext } from '@/page-layout/contexts/PageLayoutCo
import { useIsPageLayoutInEditMode } from '@/page-layout/hooks/useIsPageLayoutInEditMode';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
import { PageLayoutWidgetNoDataDisplay } from '@/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay';
-import { StyledWidgetContentFrame } from '@/page-layout/widgets/components/WidgetContentFrame';
import { isWidgetConfigurationOfType } from '@/side-panel/pages/page-layout/utils/isWidgetConfigurationOfType';
import { useLayoutRenderingContext } from '@/ui/layout/contexts/LayoutRenderingContext';
-const StyledContainer = styled(StyledWidgetContentFrame)<{
+const StyledContainer = styled.div<{
isInEditMode: boolean;
isSoloLayout: boolean;
}>`
+ box-sizing: border-box;
height: var(--widget-height, 100%);
overflow: var(
--widget-scroll-overflow,
${({ isSoloLayout }) => (isSoloLayout ? 'visible' : 'auto')}
);
pointer-events: ${({ isInEditMode }) => (isInEditMode ? 'none' : 'auto')};
+ width: 100%;
`;
const FrontComponentRenderer = lazy(() =>