autofocus, exclude line numbers from selection
This commit is contained in:
@@ -23,6 +23,7 @@ export default function EditorTextArea({ code, setCode, language, fontSize }) {
|
|||||||
padding={10}
|
padding={10}
|
||||||
size={fontSize}
|
size={fontSize}
|
||||||
textareaId='code-area'
|
textareaId='code-area'
|
||||||
|
autoFocus={true}
|
||||||
/>
|
/>
|
||||||
</EditorPrismStyle>
|
</EditorPrismStyle>
|
||||||
)
|
)
|
||||||
@@ -50,5 +51,6 @@ const StyledReactEditor = styled(ReactEditor)`
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital@0;1&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,400;0,700;1,100;1,400;1,700&display=swap');
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
|
|||||||
Reference in New Issue
Block a user