Removed the boxes around fields on shows and side panel (#4032)

#3963 removed border and padding

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Jeet Desai
2024-02-26 02:26:37 +05:30
committed by GitHub
parent 0060a9ea57
commit 51c6570d7c
9 changed files with 39 additions and 30 deletions

View File

@ -40,7 +40,7 @@ const StyledTopContainer = styled.div`
display: flex;
flex-direction: column;
gap: 24px;
padding: 24px 24px 24px 48px;
padding: ${({ theme }) => theme.spacing(6)};
`;
type ActivityEditorProps = {

View File

@ -1,3 +1,4 @@
import styled from '@emotion/styled';
import { useRecoilState } from 'recoil';
import { useUpsertActivity } from '@/activities/hooks/useUpsertActivity';
@ -13,6 +14,10 @@ import { RecordInlineCell } from '@/object-record/record-inline-cell/components/
import { PropertyBox } from '@/object-record/record-inline-cell/property-box/components/PropertyBox';
import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';
const StyledPropertyBox = styled(PropertyBox)`
padding: 0;
`;
export const ActivityEditorFields = ({
activityId,
}: {
@ -69,7 +74,7 @@ export const ActivityEditorFields = ({
});
return (
<PropertyBox>
<StyledPropertyBox>
{activity.type === 'Task' &&
DueAtFieldContextProvider &&
AssigneeFieldContextProvider && (
@ -87,6 +92,6 @@ export const ActivityEditorFields = ({
<ActivityTargetsInlineCell activity={activity} />
</ActivityTargetsContextProvider>
)}
</PropertyBox>
</StyledPropertyBox>
);
};