Skip to content

Commit

Permalink
Fix Diff View Dark Mode Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon committed Oct 9, 2024
1 parent 5ab23bf commit 7fcfdaf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/src/components/LoadTemplateDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export function LoadTemplateDialog() {
<EditorActionTextButton
icon={PiShapesDuotone}
data-session-activity="Load Template: Open Dialog"
iconClassName="fill-zinc-500"
>
<Trans>Examples</Trans>
</EditorActionTextButton>
Expand Down
17 changes: 12 additions & 5 deletions app/src/components/TextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,22 @@ export function TextEditor({ extendOptions = {}, ...props }: TextEditorProps) {
options={{
...editorOptions,
...extendOptions,
renderSideBySide: false,
renderSideBySide: true,
}}
loading={<Loading />}
theme={mode === "light" ? "vs" : "vs-dark"}
onMount={(_, monaco) => {
monaco.editor.setTheme(mode === "light" ? "vs" : "vs-dark");
}}
wrapperProps={{
"data-testid": "Editor",
className: classNames("bg-white dark:bg-neutral-900", {
"overflow-hidden": isDragging,
"cursor-wait pointer-events-none opacity-50": convertIsRunning,
}),
className: classNames(
"bg-white dark:bg-neutral-900 dark:text-white",
{
"overflow-hidden": isDragging,
"cursor-wait pointer-events-none opacity-50": convertIsRunning,
}
),
}}
/>
);
Expand Down

0 comments on commit 7fcfdaf

Please sign in to comment.