diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarDayCardContent.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarDayCardContent.tsx index f96ec1768e..b2de426f03 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarDayCardContent.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarDayCardContent.tsx @@ -13,12 +13,14 @@ type CalendarDayCardContentProps = { divider?: boolean; }; -const StyledCardContent = styled(CardContent)` - align-items: flex-start; - display: flex; - flex-direction: row; - gap: ${themeCssVariables.spacing[3]}; - padding: ${themeCssVariables.spacing[2]} ${themeCssVariables.spacing[3]}; +const StyledCardContentContainer = styled.div` + > * { + align-items: flex-start; + display: flex; + flex-direction: row; + gap: ${themeCssVariables.spacing[3]}; + padding: ${themeCssVariables.spacing[2]} ${themeCssVariables.spacing[3]}; + } `; const StyledDayContainer = styled.div` @@ -44,7 +46,7 @@ const StyledEvents = styled.div` gap: ${themeCssVariables.spacing[3]}; `; -const StyledEventRow = styled(CalendarEventRow)` +const StyledEventRowContainer = styled.div` flex: 1 0 auto; `; @@ -67,28 +69,29 @@ export const CalendarDayCardContent = ({ }; return ( - - - {weekDayLabel} - {monthDayLabel} - - - {calendarEvents.map((calendarEvent) => ( - - ))} - - + + + + {weekDayLabel} + {monthDayLabel} + + + {calendarEvents.map((calendarEvent) => ( + + + + ))} + + + ); }; diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetails.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetails.tsx index 9b40593036..e867707f2b 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetails.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetails.tsx @@ -85,7 +85,7 @@ const StyledFields = styled.div` width: 100%; `; -const StyledPropertyBox = styled(PropertyBox)` +const StyledPropertyBoxContainer = styled.div` height: ${themeCssVariables.spacing[6]}; width: 100%; `; @@ -165,35 +165,37 @@ export const CalendarEventDetails = ({ }); return ( - - - + + - - - - + + + + + + ); }; diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventNotSharedContent.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventNotSharedContent.tsx index 8dc32bf6f6..0892e523fd 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventNotSharedContent.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventNotSharedContent.tsx @@ -5,15 +5,18 @@ import { IconLock } from 'twenty-ui/display'; import { Card, CardContent } from 'twenty-ui/layout'; import { ThemeContext, themeCssVariables } from 'twenty-ui/theme-constants'; -const StyledVisibilityCard = styled(Card)` +const StyledVisibilityCardContainer = styled.div` color: ${themeCssVariables.font.color.light}; flex: 1; - border-color: ${themeCssVariables.border.color.light}; transition: color ${themeCssVariables.animation.duration.normal} ease; width: 100%; + + > * { + border-color: ${themeCssVariables.border.color.light}; + } `; -const StyledVisibilityCardContent = styled(CardContent)` +const StyledVisibilityCardContentContainer = styled.div` align-items: center; background-color: ${themeCssVariables.background.transparent.lighter}; box-sizing: border-box; @@ -29,11 +32,15 @@ export const CalendarEventNotSharedContent = () => { const { theme } = useContext(ThemeContext); return ( - - - - Not shared - - + + + + + + Not shared + + + + ); }; diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatusField.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatusField.tsx index 424308772b..094c124771 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatusField.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatusField.tsx @@ -21,7 +21,7 @@ const StyledInlineCellBaseContainer = styled.div` user-select: none; `; -const StyledPropertyBox = styled(PropertyBox)` +const StyledPropertyBoxContainer = styled.div` height: ${themeCssVariables.spacing[6]}; width: 100%; `; @@ -87,19 +87,21 @@ export const CalendarEventParticipantsResponseStatusField = ({ )); return ( - - - - {Icon} + + + + + {Icon} - - {responseStatus} - - - - {styledChips} - - - + + {responseStatus} + + + + {styledChips} + + + + ); }; diff --git a/packages/twenty-front/src/modules/activities/components/ActivityList.tsx b/packages/twenty-front/src/modules/activities/components/ActivityList.tsx index ae5ad19134..a26c2e5e05 100644 --- a/packages/twenty-front/src/modules/activities/components/ActivityList.tsx +++ b/packages/twenty-front/src/modules/activities/components/ActivityList.tsx @@ -2,16 +2,20 @@ import { styled } from '@linaria/react'; import { Card } from 'twenty-ui/layout'; import { themeCssVariables } from 'twenty-ui/theme-constants'; -const StyledList = styled(Card)` - & > :not(:last-child) { - border-bottom: 1px solid ${themeCssVariables.border.color.light}; +const StyledListContainer = styled.div` + > * { + & > :not(:last-child) { + border-bottom: 1px solid ${themeCssVariables.border.color.light}; + } + overflow: auto; + width: calc(100% - 2px); } - - width: calc(100% - 2px); - - overflow: auto; `; export const ActivityList = ({ children }: React.PropsWithChildren) => { - return {children}; + return ( + + {children} + + ); }; diff --git a/packages/twenty-front/src/modules/activities/components/ActivityRow.tsx b/packages/twenty-front/src/modules/activities/components/ActivityRow.tsx index cfdbb59451..20494b5234 100644 --- a/packages/twenty-front/src/modules/activities/components/ActivityRow.tsx +++ b/packages/twenty-front/src/modules/activities/components/ActivityRow.tsx @@ -3,14 +3,14 @@ import React from 'react'; import { CardContent } from 'twenty-ui/layout'; import { themeCssVariables } from 'twenty-ui/theme-constants'; -const StyledRowContent = styled(CardContent)` +const StyledRowContentContainer = styled.div` align-items: center; display: flex; gap: ${themeCssVariables.spacing[2]}; height: ${themeCssVariables.spacing[12]}; padding: ${themeCssVariables.spacing[0]} ${themeCssVariables.spacing[4]}; - &[data-clickable='false'] { + > *[data-clickable='false'] { cursor: default; } `; @@ -30,8 +30,10 @@ export const ActivityRow = ({ }; return ( - - {children} - + + + {children} + + ); }; diff --git a/packages/twenty-front/src/modules/activities/components/ParticipantChip.tsx b/packages/twenty-front/src/modules/activities/components/ParticipantChip.tsx index 2adf7fea50..dd4672d24d 100644 --- a/packages/twenty-front/src/modules/activities/components/ParticipantChip.tsx +++ b/packages/twenty-front/src/modules/activities/components/ParticipantChip.tsx @@ -7,7 +7,7 @@ import { RecordChip } from '@/object-record/components/RecordChip'; import { Avatar } from 'twenty-ui/display'; import { themeCssVariables } from 'twenty-ui/theme-constants'; -const StyledAvatar = styled(Avatar)` +const StyledAvatarContainer = styled.span` margin-right: ${themeCssVariables.spacing[1]}; `; @@ -67,12 +67,14 @@ export const ParticipantChip = ({ /> ) : ( - + + + {displayName} )} diff --git a/packages/twenty-front/src/modules/activities/emails/components/EmailsCard.tsx b/packages/twenty-front/src/modules/activities/emails/components/EmailsCard.tsx index d746889c84..e2ef6e2635 100644 --- a/packages/twenty-front/src/modules/activities/emails/components/EmailsCard.tsx +++ b/packages/twenty-front/src/modules/activities/emails/components/EmailsCard.tsx @@ -38,9 +38,11 @@ const StyledContainer = styled.div` overflow: auto; `; -const StyledH1Title = styled(H1Title)` - display: flex; - gap: ${themeCssVariables.spacing[2]}; +const StyledH1TitleWrapper = styled.div` + > h2 { + display: flex; + gap: ${themeCssVariables.spacing[2]}; + } `; const StyledEmailCount = styled.span` @@ -107,15 +109,17 @@ export const EmailsCard = () => { return (
- - Inbox{' '} - {totalNumberOfThreads} - - } - fontColor={H1TitleFontColor.Primary} - /> + + + Inbox{' '} + {totalNumberOfThreads} + + } + fontColor={H1TitleFontColor.Primary} + /> + {!firstQueryLoading && ( {timelineThreads?.map((thread: TimelineThread) => ( diff --git a/packages/twenty-front/src/modules/activities/files/components/DropZone.tsx b/packages/twenty-front/src/modules/activities/files/components/DropZone.tsx index 66065ac61f..eacfd31faf 100644 --- a/packages/twenty-front/src/modules/activities/files/components/DropZone.tsx +++ b/packages/twenty-front/src/modules/activities/files/components/DropZone.tsx @@ -34,8 +34,9 @@ const StyledUploadDragSubTitle = styled.div` line-height: ${themeCssVariables.text.lineHeight.md}; `; -const StyledUploadIcon = styled(IconUpload)` +const StyledUploadIconContainer = styled.div` color: ${themeCssVariables.font.color.tertiary}; + display: flex; margin-bottom: ${themeCssVariables.spacing[3]}; `; @@ -83,10 +84,12 @@ export const DropZone = ({ // eslint-disable-next-line react/jsx-props-no-spreading {...getInputProps()} /> - + + + {t`Upload files`} {t`Drag and Drop Here`} diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/components/TimelineCard.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/components/TimelineCard.tsx index eef9404347..3825f23613 100644 --- a/packages/twenty-front/src/modules/activities/timeline-activities/components/TimelineCard.tsx +++ b/packages/twenty-front/src/modules/activities/timeline-activities/components/TimelineCard.tsx @@ -38,11 +38,11 @@ const StyledMainContainer = styled.div` } `; -const StyledSidePanelAnimatedPlaceholderEmptyContainer = styled( - AnimatedPlaceholderEmptyContainer, -)` - height: auto; - padding-top: ${themeCssVariables.spacing[8]}; +const StyledSidePanelPlaceholderWrapper = styled.div` + > * { + height: auto; + padding-top: ${themeCssVariables.spacing[8]}; + } `; export const TimelineCard = () => { @@ -59,12 +59,8 @@ export const TimelineCard = () => { } if (isTimelineActivitiesEmpty) { - const EmptyContainer = isInSidePanel - ? StyledSidePanelAnimatedPlaceholderEmptyContainer - : AnimatedPlaceholderEmptyContainer; - - return ( - @@ -77,7 +73,15 @@ export const TimelineCard = () => { {t`There is no activity associated with this record.`} - + + ); + + return isInSidePanel ? ( + + {placeholderContent} + + ) : ( + placeholderContent ); } diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventCard.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventCard.tsx index 715302b23c..e2d6c94260 100644 --- a/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventCard.tsx +++ b/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventCard.tsx @@ -1,5 +1,4 @@ import { styled } from '@linaria/react'; -import { Card } from 'twenty-ui/layout'; import { MOBILE_VIEWPORT, themeCssVariables } from 'twenty-ui/theme-constants'; type EventCardProps = { @@ -22,7 +21,7 @@ const StyledCardContainer = styled.div` } `; -const StyledCard = styled(Card)` +const StyledCardInnerContainer = styled.div` background: ${themeCssVariables.background.secondary}; border: 1px solid ${themeCssVariables.border.color.medium}; border-radius: ${themeCssVariables.border.radius.md}; @@ -40,7 +39,7 @@ export const EventCard = ({ children, isOpen }: EventCardProps) => { return ( isOpen && ( - {children} + {children} ) ); diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventRowDynamicComponent.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventRowDynamicComponent.tsx index 0e5b147802..c3ce1bbd47 100644 --- a/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventRowDynamicComponent.tsx +++ b/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventRowDynamicComponent.tsx @@ -26,8 +26,12 @@ export const StyledEventRowItemColumn = styled.div` gap: ${themeCssVariables.spacing[1]}; `; -export const StyledEventRowItemAction = styled(StyledEventRowItemColumn)` +export const StyledEventRowItemAction = styled.div` + align-items: center; color: ${themeCssVariables.font.color.secondary}; + display: flex; + flex-direction: row; + gap: ${themeCssVariables.spacing[1]}; `; export const EventRowDynamicComponent = ({ diff --git a/packages/twenty-front/src/modules/advanced-text-editor/components/BubbleMenuIconButton.tsx b/packages/twenty-front/src/modules/advanced-text-editor/components/BubbleMenuIconButton.tsx index 062bc3958a..acf2e9969e 100644 --- a/packages/twenty-front/src/modules/advanced-text-editor/components/BubbleMenuIconButton.tsx +++ b/packages/twenty-front/src/modules/advanced-text-editor/components/BubbleMenuIconButton.tsx @@ -13,7 +13,7 @@ type BubbleMenuIconButtonProps = { isActive?: boolean; }; -const StyledBubbleMenuIconButton = styled(FloatingIconButton)` +const StyledBubbleMenuIconButtonContainer = styled.div` border: none; border-radius: ${themeCssVariables.spacing[1.5]}; width: ${themeCssVariables.spacing[6]}; @@ -29,17 +29,18 @@ export const BubbleMenuIconButton = ({ isActive, }: BubbleMenuIconButtonProps) => { return ( - + + + ); }; diff --git a/packages/twenty-front/src/modules/ai/components/AIChatAssistantMessageRenderer.tsx b/packages/twenty-front/src/modules/ai/components/AIChatAssistantMessageRenderer.tsx index b538346cc2..ebd44920cb 100644 --- a/packages/twenty-front/src/modules/ai/components/AIChatAssistantMessageRenderer.tsx +++ b/packages/twenty-front/src/modules/ai/components/AIChatAssistantMessageRenderer.tsx @@ -27,8 +27,9 @@ const StyledLoadingIconContainer = styled.div` padding-inline: ${themeCssVariables.spacing[1]}; `; -const StyledLoadingIcon = styled(IconDotsVertical)` +const StyledLoadingIconWrapper = styled.span` color: ${themeCssVariables.font.color.light}; + display: flex; transform: rotate(90deg); `; @@ -37,7 +38,9 @@ const InitialLoadingIndicator = () => { return ( - + + + ); }; diff --git a/packages/twenty-front/src/modules/ai/components/AIChatTab.tsx b/packages/twenty-front/src/modules/ai/components/AIChatTab.tsx index d7b03a7328..7b149e614f 100644 --- a/packages/twenty-front/src/modules/ai/components/AIChatTab.tsx +++ b/packages/twenty-front/src/modules/ai/components/AIChatTab.tsx @@ -115,12 +115,14 @@ const StyledRightButtonsContainer = styled.div` gap: ${themeCssVariables.spacing[1]}; `; -const StyledReadOnlyModelButton = styled(LightButton)` - cursor: default; +const StyledReadOnlyModelButtonContainer = styled.div` + > * { + cursor: default; - &:hover, - &:active { - background: transparent; + &:hover, + &:active { + background: transparent; + } } `; @@ -163,10 +165,9 @@ export const AIChatTab = () => { - + + + diff --git a/packages/twenty-front/src/modules/ai/components/AIChatTabMessageList.tsx b/packages/twenty-front/src/modules/ai/components/AIChatTabMessageList.tsx index 62dcf15592..e43e3c9b6d 100644 --- a/packages/twenty-front/src/modules/ai/components/AIChatTabMessageList.tsx +++ b/packages/twenty-front/src/modules/ai/components/AIChatTabMessageList.tsx @@ -8,7 +8,7 @@ import { styled } from '@linaria/react'; import { isNonEmptyArray } from '@sniptt/guards'; import { themeCssVariables } from 'twenty-ui/theme-constants'; -const StyledScrollWrapper = styled(ScrollWrapper)` +const StyledScrollWrapperContainer = styled.div` display: flex; flex: 1; flex-direction: column; @@ -30,11 +30,13 @@ export const AIChatTabMessageList = () => { } return ( - - {agentChatMessageIdsComponent.map((messageId) => { - return ; - })} - - + + + {agentChatMessageIdsComponent.map((messageId) => { + return ; + })} + + + ); }; diff --git a/packages/twenty-front/src/modules/ai/components/ThinkingStepsDisplay.tsx b/packages/twenty-front/src/modules/ai/components/ThinkingStepsDisplay.tsx index d126fca33f..afe19c0b49 100644 --- a/packages/twenty-front/src/modules/ai/components/ThinkingStepsDisplay.tsx +++ b/packages/twenty-front/src/modules/ai/components/ThinkingStepsDisplay.tsx @@ -140,8 +140,9 @@ const StyledReasoningText = styled.p` white-space: pre-wrap; `; -const StyledOrbitLoaderIcon = styled(ThinkingOrbitLoaderIcon)` +const StyledOrbitLoaderIconContainer = styled.span` color: ${themeCssVariables.font.color.tertiary}; + display: flex; `; const StyledIconContainer = styled.div` @@ -214,7 +215,7 @@ const StyledToolDetailsContainer = styled.div` overflow: hidden; `; -const StyledToolTabList = styled(TabList)` +const StyledToolTabListContainer = styled.div` background-color: ${themeCssVariables.background.secondary}; padding-left: ${themeCssVariables.spacing[1]}; `; @@ -334,11 +335,13 @@ const ThinkingToolStepRow = ({ {part.errorText} ) : ( - + + + - {isActive ? : } + {isActive ? ( + + + + ) : ( + + )} {isActive ? t`Thinking` : t`Thought`} diff --git a/packages/twenty-front/src/modules/ai/components/suggested-prompts/AIChatSuggestedPrompts.tsx b/packages/twenty-front/src/modules/ai/components/suggested-prompts/AIChatSuggestedPrompts.tsx index 5fd76d216a..413c783f8b 100644 --- a/packages/twenty-front/src/modules/ai/components/suggested-prompts/AIChatSuggestedPrompts.tsx +++ b/packages/twenty-front/src/modules/ai/components/suggested-prompts/AIChatSuggestedPrompts.tsx @@ -29,7 +29,7 @@ const StyledTitle = styled.div` padding: 0 ${themeCssVariables.spacing[2]}; `; -const StyledSuggestedPromptButton = styled(LightButton)` +const StyledSuggestedPromptButtonContainer = styled.div` align-self: flex-start; `; @@ -62,13 +62,14 @@ export const AIChatSuggestedPrompts = ({ {t`What can I help you with?`} {DEFAULT_SUGGESTED_PROMPTS.map((prompt) => ( - handleClick(prompt)} - /> + + handleClick(prompt)} + /> + ))} ); diff --git a/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx b/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx index 9eafc02adf..bdb73476e2 100644 --- a/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx +++ b/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx @@ -31,11 +31,11 @@ const StyledRow = styled.div` gap: ${themeCssVariables.spacing[2]}; `; -const StyledSelect = styled(Select)` +const StyledSelectContainer = styled.div` flex: 1 1; `; -const StyledButton = styled(Button)` +const StyledButtonContainer = styled.div` flex: 0 0 auto; `; @@ -160,26 +160,30 @@ export const MeteredPriceSelector = ({ description={t`Number of new credits allocated every ${recurringInterval}`} /> - - {isChanged && ( - + - + +
+