Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 6 additions & 4 deletions src/webview/devfile-registry/app/cardItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { StarterProject } from '../../../odo/componentTypeDescription';
import { StarterProjectDisplay } from './starterProjectDisplay';
import { Badge, Backdrop, Button, Card, CardActions, Modal } from '@material-ui/core';
import { FileCopy } from '@material-ui/icons';
import { monokai } from 'react-syntax-highlighter/dist/esm/styles/hljs';

export class CardItem extends React.Component<DevFileProps, {
numOfCall: number,
Expand Down Expand Up @@ -280,11 +281,12 @@ export class CardItem extends React.Component<DevFileProps, {
/>
</CardActions>
</CopyToClipboard>
<SyntaxHighlighter language='yaml' useInlineStyles={false}
<SyntaxHighlighter language='yaml' useInlineStyles
style={monokai}
wrapLines
showLineNumbers
lineNumberStyle={{ marginLeft: '0.5rem' }}
customStyle={{ marginLeft: '-1.5rem' }}
lineNumberStyle={{ marginLeft: '-1.5rem' }}
customStyle={{ marginLeft: '-1.5rem', backgroundColor: 'inherit' }}
codeTagProps={{
style: {
fontFamily: 'inherit', color: 'inherit',
Expand Down Expand Up @@ -316,7 +318,7 @@ export class CardItem extends React.Component<DevFileProps, {
</TextContent>}
</div>
</CardHeader>
<CardTitle style={{ margin: '1rem 1.5rem' }}>
<CardTitle style={{ margin: '1.5rem' }}>
<TextContent>
<Text component={TextVariants.h1}>{this.props.compDescription.Devfile.metadata.displayName}</Text>
</TextContent>
Expand Down
2 changes: 1 addition & 1 deletion src/webview/devfile-registry/app/home.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Theme, createStyles } from '@material-ui/core/styles';
export default (_theme: Theme) =>
createStyles({
devfileGalleryGrid: {
margin: '0rem',
margin: '1.5rem 0rem',
padding: '0rem 1.5rem',
color: 'var(--vscode-foreground)',
backgroundColor: 'var(--vscode-editor-background)',
Expand Down