Skip to content

Commit

Permalink
fix: Missing ellipsis for long calendar event names
Browse files Browse the repository at this point in the history
  • Loading branch information
asadath1395 committed Nov 17, 2024
1 parent 30bcdda commit 0d28233
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ const StyledMonthDay = styled.div`
const StyledEvents = styled.div`
align-items: stretch;
display: flex;
flex: 1 0 auto;
flex-direction: column;
gap: ${({ theme }) => theme.spacing(3)};
overflow: hidden;
flex-grow: 1;
`;

const StyledEventRow = styled(CalendarEventRow)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { useRecoilValue } from 'recoil';
import {
Avatar,
AvatarGroup,
Card,
CardContent,
IconArrowRight,
IconLock,
isDefined,
Card,
CardContent,
} from 'twenty-ui';

import { CalendarCurrentEventCursor } from '@/activities/calendar/components/CalendarCurrentEventCursor';
Expand Down Expand Up @@ -44,6 +44,7 @@ const StyledAttendanceIndicator = styled.div<{ active?: boolean }>`
height: 100%;
width: ${({ theme }) => theme.spacing(1)};
border-radius: ${({ theme }) => theme.border.radius.xs};
flex-shrink: 0;
${({ active, theme }) =>
active &&
Expand All @@ -57,7 +58,8 @@ const StyledLabels = styled.div`
display: flex;
color: ${({ theme }) => theme.font.color.primary};
gap: ${({ theme }) => theme.spacing(2)};
flex: 1 0 auto;
overflow: hidden;
flex-grow: 1;
`;

const StyledTime = styled.div`
Expand All @@ -66,10 +68,13 @@ const StyledTime = styled.div`
color: ${({ theme }) => theme.font.color.tertiary};
gap: ${({ theme }) => theme.spacing(1)};
width: ${({ theme }) => theme.spacing(26)};
flex-shrink: 0;
`;

const StyledTitle = styled.div<{ active: boolean; canceled: boolean }>`
flex: 1 0 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
${({ theme, active }) =>
active &&
Expand All @@ -89,8 +94,8 @@ const StyledVisibilityCard = styled(Card)<{ active: boolean }>`
color: ${({ active, theme }) =>
active ? theme.font.color.primary : theme.font.color.light};
border-color: ${({ theme }) => theme.border.color.light};
flex: 1 0 auto;
transition: color ${({ theme }) => theme.animation.duration.normal} ease;
flex-shrink: 0;
`;

const StyledVisibilityCardContent = styled(CardContent)`
Expand Down

0 comments on commit 0d28233

Please sign in to comment.