Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Missing ellipsis for long calendar event names #8528

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading