Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/views/common/monaco/Monaco.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const Monaco = ({ body, onChange, language, readOnly, height, extraInfoElement,
{extraInfoElement}
<Editor
language={language || 'json'}
width=' 100%'
height=' 100%'
width='100%'
height='100%'
value={formattedBody}
options={editorOptions}
onChange={onChange}
Expand Down
2 changes: 1 addition & 1 deletion src/app/views/query-response/pivot-items/pivot-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const useStyles = makeStyles({
backgroundColor: tokens.colorNeutralBackground1,
height: '100%',
minHeight: '600px',
overflow: 'auto'
overflow: 'hidden'
}
});

Expand Down
20 changes: 11 additions & 9 deletions src/app/views/query-response/snippets/Snippets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const useSnippetStyles = makeStyles({
container: {
margin: '0 auto',
maxHeight: '100vh',
overflowY: 'auto',
overflowY: 'hidden',
display: 'flex',
flexDirection: 'column'
},
Expand All @@ -78,16 +78,15 @@ const useSnippetStyles = makeStyles({
display: 'flex',
flexDirection: 'column',
flex: '1 1 auto',
height: '30vh',
overflowY: 'auto'
height: '60vh'
},
copyButton: {
marginLeft: 'auto'
},
snippetContent: {
display: 'flex',
flexDirection: 'column',
overflowY: 'auto',
overflowY: 'hidden',
maxHeight: 'calc(100vh-120px)'
}
});
Expand Down Expand Up @@ -201,11 +200,14 @@ const RenderSnippets = () => {
return (
<div id='snippets-tablist' className={styles.container}>
<TabList selectedValue={selectedLanguage} onTabSelect={onTabSelect}>
{Object.keys(supportedLanguages).map((language: string) => (
<Tab key={language} value={language}>
{language === 'CSharp' ? 'C#' : language}
</Tab>
))}
<Tab key='CSharp' value='CSharp'>C#</Tab>
{/*The rest should be sorted in alphabetical order to match docs */}
{Object.keys(supportedLanguages)
.filter(lang => lang !== 'CSharp')
.sort((a, b) => a.localeCompare(b))
.map(language => (
<Tab key={language} value={language}>{language}</Tab>
))}
</TabList>
<div id='snippet-content'>
<SnippetContent language={selectedLanguage as string} />
Expand Down
Loading