style: viewcode scrollbar color

This commit is contained in:
jialin
2024-10-25 20:52:15 +08:00
parent abdc78e123
commit a185bd9463
5 changed files with 40 additions and 13 deletions
@@ -162,9 +162,14 @@ const MessageInput: React.FC<MessageInputProps> = ({
setOpen(true);
};
const handleAddMessage = () => {
const handleAddMessage = (e?: any) => {
e?.preventDefault();
addMessage?.({ ...message });
resetMessage();
setFocused(true);
setTimeout(() => {
inputRef.current?.focus?.();
}, 100);
};
const getPasteContent = useCallback(
@@ -136,13 +136,20 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
}
}}
>
<HighlightCode
height={380}
theme="dark"
code={codeValue}
lang={lang}
copyable={false}
></HighlightCode>
<div
style={{
paddingRight: 2,
paddingBottom: 2
}}
>
<HighlightCode
height={380}
theme="dark"
code={codeValue}
lang={lang}
copyable={false}
></HighlightCode>
</div>
</EditorWrap>
<div
style={{ marginTop: 10, display: 'flex', alignItems: 'baseline' }}