mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
better styles
This commit is contained in:
parent
910ed7faa9
commit
ce634eadaa
2 changed files with 10 additions and 8 deletions
|
|
@ -366,7 +366,7 @@ export const SelectedFiles = (
|
|||
initValue={selection.selectionStr!}
|
||||
language={getLanguageFromFileName(selection.fileURI.path)}
|
||||
maxHeight={100}
|
||||
showScrollbars={false}
|
||||
showScrollbars={true}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -322,17 +322,19 @@ export const VoidCodeEditor = ({ initValue, language, maxHeight, showScrollbars
|
|||
wordWrap: 'off',
|
||||
|
||||
scrollbar: {
|
||||
ignoreHorizontalScrollbarInContentHeight: true,
|
||||
alwaysConsumeMouseWheel: false,
|
||||
...!SHOW_SCROLLBARS ? {
|
||||
...SHOW_SCROLLBARS ? {
|
||||
vertical: 'auto',
|
||||
verticalScrollbarSize: 8,
|
||||
horizontal: 'auto',
|
||||
horizontalScrollbarSize: 8,
|
||||
} : {
|
||||
vertical: 'hidden',
|
||||
verticalScrollbarSize: 0,
|
||||
// horizontal: 'hidden',
|
||||
// horizontalScrollbarSize: 0,
|
||||
|
||||
} : {
|
||||
verticalScrollbarSize: 8,
|
||||
horizontal: 'auto',
|
||||
horizontalScrollbarSize: 8,
|
||||
ignoreHorizontalScrollbarInContentHeight: true,
|
||||
|
||||
},
|
||||
},
|
||||
scrollBeyondLastLine: false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue