Skip to content

Commit

Permalink
fix: Fix theme issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 22, 2022
1 parent f2cf682 commit a9a4e79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
.@{w-code-preview} {
border-radius: 3px;
margin-bottom: 16px;
background-color: var(--color-code-preview-bg);
background-color: var(--color-code-preview-bg) !important;
color: transparent !important;
max-height: 420px;
min-height: 12px;
z-index: 10;
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const CodePreview = React.forwardRef<CodePreviewRef, CodePreviewProps>((props, r
}
};
return (
<Split visiable={visiable} className={cls} style={{ flex: 1, ...style }} {...otherProps}>
<Split data-color-mode={theme} visiable={visiable} className={cls} style={{ flex: 1, ...style }} {...otherProps}>
{!noPreview && !onlyEdit && (
<div
className={[
Expand Down

1 comment on commit a9a4e79

@vercel
Copy link

@vercel vercel bot commented on a9a4e79 Apr 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.