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-07 02:35:46 +05:30
committed by GitHub
parent 79aba75649
commit e2882056a9
2 changed files with 11 additions and 1 deletions

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;
}
}

View File

@ -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 = ({