From 8368f14fb913c1aaea0c6173570a691bbd0b9887 Mon Sep 17 00:00:00 2001
From: Anis Hamal <73131641+AndrewHamal@users.noreply.github.com>
Date: Sat, 19 Oct 2024 15:27:43 +0545
Subject: [PATCH] Bug Fix: Decreased border radius of badge and changed badge
parent div padding to margin (#7835)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## What does this PR do?
Decreased the border-radius of the badge and changed the padding-top and
padding-bottom of the badge parent div to margin-top and margin-bottom
Fixes #7811
## How should this be tested?
Create any task, notes, or files.
---------
Co-authored-by: ehconitin
---
.../timelineActivities/components/EventsGroup.tsx | 6 +++---
.../ui/layout/show-page/components/ShowPageSubContainer.tsx | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/packages/twenty-front/src/modules/activities/timelineActivities/components/EventsGroup.tsx b/packages/twenty-front/src/modules/activities/timelineActivities/components/EventsGroup.tsx
index 430968f4f..fe368ae9b 100644
--- a/packages/twenty-front/src/modules/activities/timelineActivities/components/EventsGroup.tsx
+++ b/packages/twenty-front/src/modules/activities/timelineActivities/components/EventsGroup.tsx
@@ -20,8 +20,8 @@ const StyledActivityGroup = styled.div`
`;
const StyledActivityGroupContainer = styled.div`
- padding-bottom: ${({ theme }) => theme.spacing(2)};
- padding-top: ${({ theme }) => theme.spacing(2)};
+ margin-bottom: ${({ theme }) => theme.spacing(3)};
+ margin-top: ${({ theme }) => theme.spacing(3)};
position: relative;
`;
@@ -29,7 +29,7 @@ const StyledActivityGroupBar = styled.div`
align-items: center;
background: ${({ theme }) => theme.background.secondary};
border: 1px solid ${({ theme }) => theme.border.color.light};
- border-radius: ${({ theme }) => theme.border.radius.xl};
+ border-radius: ${({ theme }) => theme.border.radius.md};
display: flex;
flex-direction: column;
height: 100%;
diff --git a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx
index 017f38fd9..d8bf449d6 100644
--- a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx
@@ -61,13 +61,13 @@ const StyledGreyBox = styled.div<{ isInRightDrawer: boolean }>`
const StyledButtonContainer = styled.div`
align-items: center;
- bottom: 0;
+ background: ${({ theme }) => theme.background.secondary};
border-top: 1px solid ${({ theme }) => theme.border.color.light};
+ bottom: 0;
+ box-sizing: border-box;
display: flex;
justify-content: flex-end;
padding: ${({ theme }) => theme.spacing(2)};
- width: 100%;
- box-sizing: border-box;
position: absolute;
width: 100%;
`;