Skip to content

The open alternative to Salesforce, designed for AI.

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

Faisal-imtiyaz123e2882056a9aa
diff --git a/packages/twenty-front/src/index.css b/packages/twenty-front/src/index.css
index 2d696388b83..808fd8917db 100644
--- a/packages/twenty-front/src/index.css
+++ b/packages/twenty-front/src/index.css
@@ -12,4 +12,4 @@ html {
/* https://stackoverflow.com/questions/44543157/how-to-hide-the-google-invisible-recaptcha-badge */
.grecaptcha-badge {
visibility: hidden !important;
-}
\ No newline at end of file
+}
diff --git a/packages/twenty-front/src/modules/ui/input/editor/components/BlockEditor.tsx b/packages/twenty-front/src/modules/ui/input/editor/components/BlockEditor.tsx
index a6732a34f4b..1c1968ea1ea 100644
--- a/packages/twenty-front/src/modules/ui/input/editor/components/BlockEditor.tsx
+++ b/packages/twenty-front/src/modules/ui/input/editor/components/BlockEditor.tsx
@@ -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 = ({