Browse Source

fix: code highlight add semi-light-scrollbar

DaiQiangReal 1 year ago
parent
commit
a87ee93f0b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/semi-ui/codeHighlight/index.tsx

+ 1 - 1
packages/semi-ui/codeHighlight/index.tsx

@@ -71,7 +71,7 @@ class CodeHighlight extends BaseComponent<CodeHighlightProps, CodeHighlightState
     }
 
     render() {
-        return <div style={this.props.style} className={cls(this.props.className, cssClasses.PREFIX, { [`${cssClasses.PREFIX}-defaultTheme`]: this.props.defaultTheme })} {...this.getDataAttr(this.props)}>
+        return <div style={this.props.style} className={cls(this.props.className, cssClasses.PREFIX, "semi-light-scrollbar", { [`${cssClasses.PREFIX}-defaultTheme`]: this.props.defaultTheme })} {...this.getDataAttr(this.props)}>
             <pre>
                 <code ref={this.codeRef}>
                     {this.props.code}