Skip to content
Open
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
19 changes: 12 additions & 7 deletions src/components/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,20 @@ export function Calendar() {
const distanceWarning = getDistanceWarning(event);

return (
<>
<Box
display="inline-block"
pos="relative"
width="100%"
height="100%"
cursor="pointer"
overflow="hidden"
>
<Box
color={event.textColor}
overflow="hidden"
p={0.5}
lineHeight={1.3}
cursor="pointer"
width="100%"
height="100%"
position="relative"
>
{!(activity instanceof CustomActivity) ? (
<Tooltip
Expand All @@ -152,7 +157,7 @@ export function Calendar() {
)}
</Box>
{distanceWarning ? (
<Float placement="top-end">
<Float placement="top-end" offset={3}>
<Tooltip
content={distanceWarning}
portalled
Expand All @@ -162,14 +167,14 @@ export function Calendar() {
size="5"
bg="orange.solid"
color="orange.contrast"
boxShadow="lg"
boxShadow="sm"
>
!
</Circle>
</Tooltip>
</Float>
) : null}
</>
</Box>
);
};

Expand Down
Loading