style: viewcode scrollbar color
This commit is contained in:
@@ -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' }}
|
||||
|
||||
Reference in New Issue
Block a user