The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Tab design improvements (#7307)
Arafat Hossain4d67787fa283
diff --git a/packages/twenty-front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsx b/packages/twenty-front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsxindex d28366027c4..92ed242e7d6 100644--- a/packages/twenty-front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsx+++ b/packages/twenty-front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsx@@ -28,10 +28,18 @@ import { RightDrawerHotkeyScope } from '../types/RightDrawerHotkeyScope';import { emitRightDrawerCloseEvent } from '@/ui/layout/right-drawer/utils/emitRightDrawerCloseEvent';import { RightDrawerRouter } from './RightDrawerRouter';-const StyledContainer = styled(motion.div)`+const StyledContainer = styled(motion.div)<{ isRightDrawerMinimized: boolean }>`background: ${({ theme }) => theme.background.primary};- border-left: 1px solid ${({ theme }) => theme.border.color.medium};- box-shadow: ${({ theme }) => theme.boxShadow.strong};+ border-left: ${({ theme, isRightDrawerMinimized }) =>+ isRightDrawerMinimized+ ? `1px solid ${theme.border.color.strong}`+ : `1px solid ${theme.border.color.medium}`};+ border-top: ${({ theme, isRightDrawerMinimized }) =>+ isRightDrawerMinimized ? `1px solid ${theme.border.color.strong}` : 'none'};+ border-top-left-radius: ${({ theme, isRightDrawerMinimized }) =>+ isRightDrawerMinimized ? theme.border.radius.md : '0'};+ box-shadow: ${({ theme, isRightDrawerMinimized }) =>+ isRightDrawerMinimized ? 'none' : theme.boxShadow.light};height: 100dvh;overflow-x: hidden;position: fixed;@@ -157,6 +165,7 @@ export const RightDrawer = () => {return (<StyledContainer+ isRightDrawerMinimized={isRightDrawerMinimized}animate={targetVariantForAnimation}variants={animationVariants}transition={{diff --git a/packages/twenty-ui/src/display/tooltip/OverflowingTextWithTooltip.tsx b/packages/twenty-ui/src/display/tooltip/OverflowingTextWithTooltip.tsxindex c73cd0fda99..7f8df145028 100644--- a/packages/twenty-ui/src/display/tooltip/OverflowingTextWithTooltip.tsx+++ b/packages/twenty-ui/src/display/tooltip/OverflowingTextWithTooltip.tsx@@ -1,6 +1,6 @@+import { styled } from '@linaria/react';import { useRef, useState } from 'react';import { createPortal } from 'react-dom';-import { styled } from '@linaria/react';import { THEME_COMMON } from '@ui/theme';