fix: Improved breakpoints for pins on mobile

fix: Prevent clock icon shrinking
fix: Prevent metadata wrapping
This commit is contained in:
Tom Moor
2022-09-15 23:04:43 +01:00
parent 410c9900c1
commit a74635a37f
3 changed files with 15 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ function DocumentCard(props: Props) {
: document.titleWithDefault}
</Heading>
<DocumentMeta size="xsmall">
<ClockIcon color="currentColor" size={18} />{" "}
<Clock color="currentColor" size={18} />
<Time
dateTime={document.updatedAt}
tooltipDelay={500}
@@ -152,6 +152,10 @@ function DocumentCard(props: Props) {
);
}
const Clock = styled(ClockIcon)`
flex-shrink: 0;
`;
const AnimatePresence = styled(m.div)`
width: 100%;
height: 100%;
@@ -215,6 +219,9 @@ const DocumentMeta = styled(Text)`
gap: 2px;
color: ${(props) => props.theme.textTertiary};
margin: 0 0 0 -2px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
`;
const DocumentLink = styled(Link)<{