fix: Links to attachments do not work in emailed notifications (#5935)

This commit is contained in:
Tom Moor
2023-10-04 21:25:07 -04:00
committed by GitHub
parent e1c90d3938
commit 1359f44814
4 changed files with 47 additions and 9 deletions

View File

@@ -249,6 +249,17 @@ const findAndReplaceStyle = () => css`
}
`;
const emailStyle = (props: Props) => css`
.attachment {
display: block;
color: ${props.theme.text} !important;
box-shadow: 0 0 0 1px ${props.theme.divider};
white-space: nowrap;
border-radius: 8px;
padding: 6px 8px;
}
`;
const style = (props: Props) => `
flex-grow: ${props.grow ? 1 : 0};
justify-content: start;
@@ -1546,6 +1557,7 @@ const EditorContainer = styled.div<Props>`
${codeMarkCursor}
${codeBlockStyle}
${findAndReplaceStyle}
${emailStyle}
`;
export default EditorContainer;