From cecb32cd89c8c096f83a6759a04bd2887c293646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?= <71827178+bosiraphael@users.noreply.github.com> Date: Fri, 21 Mar 2025 13:49:39 +0100 Subject: [PATCH] Fixes on rich text editor (#11087) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update skeleton loader padding and make it take only one line - Update rich text editor padding to align with the fields inside the side panel Capture d’écran 2025-03-21 à 11 57 00 --- .../modules/ui/input/editor/components/BlockEditor.tsx | 2 +- .../show-page/components/ShowPageActivityContainer.tsx | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/twenty-front/src/modules/ui/input/editor/components/BlockEditor.tsx b/packages/twenty-front/src/modules/ui/input/editor/components/BlockEditor.tsx index 2fa2b3cb8..7ece92b6a 100644 --- a/packages/twenty-front/src/modules/ui/input/editor/components/BlockEditor.tsx +++ b/packages/twenty-front/src/modules/ui/input/editor/components/BlockEditor.tsx @@ -44,7 +44,7 @@ const StyledEditor = styled.div` background: transparent; } & .bn-editor { - padding-inline: 36px; + padding-inline: 44px; } & .bn-container .bn-drag-handle { width: 20px; diff --git a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageActivityContainer.tsx b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageActivityContainer.tsx index f4f72eb6f..950ac3d7b 100644 --- a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageActivityContainer.tsx +++ b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageActivityContainer.tsx @@ -1,3 +1,4 @@ +import { SKELETON_LOADER_HEIGHT_SIZES } from '@/activities/components/SkeletonLoader'; import { ActivityTargetableObject } from '@/activities/types/ActivityTargetableEntity'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { recordStoreFamilySelector } from '@/object-record/record-store/states/selectors/recordStoreFamilySelector'; @@ -23,10 +24,8 @@ const StyledShowPageActivityContainer = styled.div` const StyledSkeletonContainer = styled.div` display: flex; flex-direction: column; - - gap: ${({ theme }) => theme.spacing(3)}; justify-content: center; - padding: ${({ theme }) => theme.spacing(4)}; + padding: ${({ theme }) => theme.spacing(0, 4)}; `; const LoadingSkeleton = () => { @@ -39,9 +38,7 @@ const LoadingSkeleton = () => { highlightColor={theme.background.transparent.lighter} borderRadius={theme.border.radius.sm} > - - - + );