Fix file preview text color in dark mode (#10748)

This PR fixes an issue where the file preview text was unreadable due to
white text on a white background in dark mode.

Dark mode ->

![image](https://github.com/user-attachments/assets/1f8f6fd0-b95b-4b78-ae8c-db51acfefac2)

Light mode ->

![image](https://github.com/user-attachments/assets/82996a31-e000-4f04-b8db-bd35838732ec)

Fixes #10743

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
Rithik M
2025-03-10 18:24:01 +05:30
committed by GitHub
parent c981ae329e
commit a1e0d7b7d7

View File

@ -105,7 +105,11 @@ export const DocumentViewer = ({
},
]}
pluginRenderers={DocViewerRenderers}
style={{ height: '100%' }}
style={{
height: '100%',
color: theme.font.color.primary,
backgroundColor: theme.background.primary,
}}
config={{
header: {
disableHeader: true,