Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix bug with icon not inlining with a name with one character
  • Loading branch information
jahn96 committed Aug 27, 2020
commit 3e0e596b7581eeef8a7400c708f66ecc633d62bc
39 changes: 39 additions & 0 deletions src/CodeSnippetDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<pythonIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -511,6 +512,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<javaIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -522,6 +524,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<rKernelIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -533,6 +536,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<juliaIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -544,6 +548,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<matlabIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -555,6 +560,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<schemeIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -566,6 +572,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<processingIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -577,6 +584,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<scalaIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -588,6 +596,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<groovyIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -599,6 +608,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<fortranIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -610,6 +620,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<haskellIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -621,6 +632,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<rubyIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -632,6 +644,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<typescriptIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -643,6 +656,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<javascriptIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -654,6 +668,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<coffeescriptIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -665,6 +680,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<livescriptIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -676,6 +692,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<csharpIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -687,6 +704,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<fsharpIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -698,6 +716,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<goIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -709,6 +728,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<erlangIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -720,6 +740,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<ocamlIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -731,6 +752,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<forthIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -742,6 +764,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<perlIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -753,6 +776,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<phpIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -764,6 +788,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<clojureIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -775,6 +800,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<luaIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -786,6 +812,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<purescriptIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -797,6 +824,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<cppIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -808,6 +836,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<prologIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -819,6 +848,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<lispIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -830,6 +860,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<cIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -841,6 +872,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<kotlinIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -852,6 +884,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<nodejsIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -863,6 +896,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<coconutIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -874,6 +908,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<babelIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -885,6 +920,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<sbtIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -896,6 +932,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<rustIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -907,6 +944,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<qsharpIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand All @@ -918,6 +956,7 @@ export class CodeSnippetDisplay extends React.Component<
return (
<fileIcon.react
tag="span"
height="16px"
width="16px"
right="7px"
top="5px"
Expand Down
11 changes: 0 additions & 11 deletions src/CodeSnippetWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,3 @@ export class CodeSnippetWidget extends ReactWidget {
);
}
}

// class Private {
// /**
// * Given a MimeData instance, extract the data, if any.
// */
// static findCellData(mime: MimeData): string[] {
// const code = mime.getData('text/plain');

// return code.split('\n');
// }
// }