Skip to content

Commit e288205

Browse files
Adds secondary color and styles to code snippets in block note editor ( #6029 ) (#6928)
fixes #6929 --------- Co-authored-by: Lucas Bordeau <[email protected]>
1 parent 79aba75 commit e288205

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/twenty-front/src/index.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ html {
1212
/* https://stackoverflow.com/questions/44543157/how-to-hide-the-google-invisible-recaptcha-badge */
1313
.grecaptcha-badge {
1414
visibility: hidden !important;
15-
}
15+
}

packages/twenty-front/src/modules/ui/input/editor/components/BlockEditor.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ const StyledEditor = styled.div`
9393
& .bn-color-picker-dropdown {
9494
margin-left: 8px;
9595
}
96+
97+
& .bn-inline-content code {
98+
font-family: monospace;
99+
color: darkred;
100+
padding: 2px 4px;
101+
border-radius: 4px;
102+
border: 1px solid #e0e0e0;
103+
font-size: 0.9rem;
104+
background-color: #1414140f;
105+
}
96106
`;
97107

98108
export const BlockEditor = ({

0 commit comments

Comments
 (0)