Adds secondary color and styles to code snippets in block note editor ( #6029 ) (#6928)

fixes https://github.com/twentyhq/twenty/issues/6929

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
Faisal-imtiyaz123
2024-09-06 23:05:46 +02:00
committed by GitHub
co-authored by Lucas Bordeau
parent 79aba75649
commit e2882056a9
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -12,4 +12,4 @@ html {
/* https://stackoverflow.com/questions/44543157/how-to-hide-the-google-invisible-recaptcha-badge */
.grecaptcha-badge {
visibility: hidden !important;
}
}
@@ -93,6 +93,16 @@ const StyledEditor = styled.div`
& .bn-color-picker-dropdown {
margin-left: 8px;
}
& .bn-inline-content code {
font-family: monospace;
color: darkred;
padding: 2px 4px;
border-radius: 4px;
border: 1px solid #e0e0e0;
font-size: 0.9rem;
background-color: #1414140f;
}
`;
export const BlockEditor = ({