Merge branch 'master' of https://github.com/catarak/p5.js-web-editor into editor
This commit is contained in:
commit
ea2ed435ba
3 changed files with 7 additions and 2 deletions
|
@ -41,10 +41,10 @@ class SidebarItem extends React.Component {
|
||||||
className={itemClass}
|
className={itemClass}
|
||||||
onBlur={() => this.props.hideFileOptions(this.props.file.id)}
|
onBlur={() => this.props.hideFileOptions(this.props.file.id)}
|
||||||
tabIndex={this.props.fileIndex}
|
tabIndex={this.props.fileIndex}
|
||||||
|
onClick={() => this.props.setSelectedFile(this.props.file.id)}
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
className="sidebar__file-item-name"
|
className="sidebar__file-item-name"
|
||||||
onClick={() => this.props.setSelectedFile(this.props.file.id)}
|
|
||||||
>{this.props.file.name}</a>
|
>{this.props.file.name}</a>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
|
|
|
@ -44,6 +44,9 @@
|
||||||
&--selected {
|
&--selected {
|
||||||
background-color: $ide-border-color;
|
background-color: $ide-border-color;
|
||||||
}
|
}
|
||||||
|
&:hover .sidebar__file-item-name {
|
||||||
|
color: $light-primary-text-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar__file-item-name {
|
.sidebar__file-item-name {
|
||||||
|
|
|
@ -15,7 +15,9 @@ const defaultHTML =
|
||||||
`<!DOCTYPE html>
|
`<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.0/p5.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.dom.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.sound.min.js"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="style.css">
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in a new issue