admin管理员组文章数量:1122832
I don't want the text to be seen behind the scrollbar. Maybe with some margin? I tried this:
<Editor
height="100%"
defaultValue={''}
theme={mode === 'dark' ? 'vs-dark' : 'light'}
language="html"
value={props.value ?? ''}
onChange={handleChange}
options={{
minimap: { enabled: false },
lineNumbersMinChars: 2,
readOnly: props.readOnly,
scrollbar: {
backgroundColor: mode === 'dark' ? '#333' : '#f0f0f0',
sliderBackground: 'rgba(100, 100, 100, 0.5)',
activeSliderBackground: 'rgba(150, 150, 150, 0.8)',
},
padding: { right:100 },
margin: { right:100 },
alwaysConsumeMouseWheel: true,
}}
onMount={handleEditorMount}
/>
I don't want the text to be seen behind the scrollbar. Maybe with some margin? I tried this:
<Editor
height="100%"
defaultValue={''}
theme={mode === 'dark' ? 'vs-dark' : 'light'}
language="html"
value={props.value ?? ''}
onChange={handleChange}
options={{
minimap: { enabled: false },
lineNumbersMinChars: 2,
readOnly: props.readOnly,
scrollbar: {
backgroundColor: mode === 'dark' ? '#333' : '#f0f0f0',
sliderBackground: 'rgba(100, 100, 100, 0.5)',
activeSliderBackground: 'rgba(150, 150, 150, 0.8)',
},
padding: { right:100 },
margin: { right:100 },
alwaysConsumeMouseWheel: true,
}}
onMount={handleEditorMount}
/>
Share
Improve this question
asked Nov 22, 2024 at 15:48
Sebastian CapelliSebastian Capelli
211 bronze badge
1 Answer
Reset to default 0To remove the transparency from the navigation bar in Monaco Editor, you would need to modify the CSS or the relevant styles that apply to the editor's layout.
The Monaco Editor doesn't provide a direct option for controlling the transparency of its navbar (if you’re referring to the UI elements like the toolbar or editor area), but you can apply custom styles to remove or change transparency.
本文标签: javascripthow can i remove the transparency of the scroll bar in monaco editorStack Overflow
版权声明:本文标题:javascript - how can i remove the transparency of the scroll bar in monaco editor? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736302591a1931590.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论