fix tabs
This commit is contained in:
parent
e268c5b8c8
commit
d8145e80b1
|
@ -132,9 +132,14 @@ class TextEditor extends React.Component {
|
|||
return (
|
||||
<ul className="list-inline m-0 p-2">
|
||||
{this.props.editorTabs.map(file => (
|
||||
<li key={file.name} className={classNames("list-inline-item", "border-right", "p-2", { 'bg-dark': file.name === this.props.currentFile.name })}>
|
||||
<a className="text-white no-underline" href="#switch-tab" onClick={() => this.props.addEditorTabs(file)}>{file.name}</a>
|
||||
<li key={file.name} className={classNames("list-inline-item")}>
|
||||
<a className={classNames({'text-body': file.name !== this.props.currentFile.name},
|
||||
{'text-primary': file.name === this.props.currentFile.name}, "border-right", "p-2", "d-inline-block")}
|
||||
href="#switch-tab" onClick={() => this.props.addEditorTabs(file)}>
|
||||
{file.name}
|
||||
<FontAwesomeIcon onClick={() => this.props.removeEditorTabs(file)} className="mx-1" name="close"/>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue