Various fixes

This commit is contained in:
jeffvli
2022-11-16 20:01:52 -08:00
parent c89808fd14
commit b4825c35b5
12 changed files with 28 additions and 65 deletions
+5 -5
View File
@@ -20,22 +20,22 @@ interface TextProps extends MantineTextDivProps {
weight?: number;
}
const BaseText = styled(MantineText)<TextProps>`
const StyledText = styled(MantineText)<TextProps>`
color: ${(props) =>
props.$secondary ? 'var(--main-fg-secondary)' : 'var(--main-fg)'};
font-family: ${(props) => props.font || 'var(--content-font-family)'};
font-family: ${(props) => props.font};
cursor: ${(props) => (props.$link ? 'cursor' : 'default')};
transition: color 0.2s ease-in-out;
user-select: ${(props) => (props.$noSelect ? 'none' : 'auto')};
${(props) => props.overflow === 'hidden' && textEllipsis}
&:hover {
color: ${(props) => props.$link && 'var(--main-fg)'};
text-decoration: ${(props) => (props.$link ? 'underline' : 'none')};
}
`;
const StyledText = styled(BaseText)<TextProps>``;
export const _Text = ({
const _Text = ({
children,
$secondary,
overflow,