Changed elements tag to output

This commit is contained in:
Ulysse ARNAUD 2022-10-10 10:17:45 +02:00
parent a78e4d1327
commit 01b11e1ac2
2 changed files with 10 additions and 10 deletions

View file

@ -50,7 +50,7 @@ class CommandView extends React.Component{
]); ]);
return ( return (
<div id={this.props.id} className="reactCommandView"> <output id={this.props.id} className="reactCommandView">
<p className={commandClass}> <p className={commandClass}>
<span className="prompt">{'$'}</span> <span className="prompt">{'$'}</span>
{' '} {' '}
@ -69,7 +69,7 @@ class CommandView extends React.Component{
<div className="commandLineWarnings"> <div className="commandLineWarnings">
{this.renderFormattedWarnings()} {this.renderFormattedWarnings()}
</div> </div>
</div> </output>
); );
} }
@ -104,9 +104,9 @@ class CommandView extends React.Component{
} }
} }
return ( return (
<div className={'commandLineResult'}> <output className={'commandLineResult'}>
{result} {result}
</div> </output>
); );
} }

View file

@ -493,28 +493,28 @@ div.controls div.box.flex1 div.plus {
} }
/* Command Line */ /* Command Line */
div.reactCommandView p.commandLine i { output.reactCommandView p.commandLine i {
margin: 0 5px; margin: 0 5px;
} }
p.commandLine, p.commandLine,
div.commandLineResult { output.commandLineResult {
opacity: 1; opacity: 1;
font-size: 1em; font-size: 1em;
margin: 0px; margin: 0px;
} }
div.commandLineWarnings p, div.commandLineWarnings p,
div.commandLineResult p { output.commandLineResult p {
margin: 0px; margin: 0px;
} }
div.commandLineResult p:first-child, output.commandLineResult p:first-child,
div.commandLineWarnings p:first-child { div.commandLineWarnings p:first-child {
padding-top: 8px; padding-top: 8px;
} }
div.commandLineResult p:last-child, output.commandLineResult p:last-child,
div.commandLineWarnings p:last-child { div.commandLineWarnings p:last-child {
padding-bottom: 8px; padding-bottom: 8px;
} }
@ -536,7 +536,7 @@ p.commandLine span.icons i:first-child {
margin-left: 5px; margin-left: 5px;
} }
div.reactCommandView p.commandLine span.icons i:first-child { output.reactCommandView p.commandLine span.icons i:first-child {
margin-left: 4px; margin-left: 4px;
position: relative; position: relative;
left: 1px; left: 1px;