fix sidebar bugs

This commit is contained in:
Cassie Tarakajian 2016-12-09 17:05:24 -05:00
parent 85bc40013c
commit 637a62be01
2 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@ export class FileNode extends React.Component {
handleFileClick(e) {
e.stopPropagation();
if (!this.isDeleting) {
if (this.props.name !== 'root' && !this.isDeleting) {
this.props.setSelectedFile(this.props.id);
}
}

View file

@ -122,12 +122,12 @@
.sidebar__file-item-options {
@extend %modal;
@include themify() {
background-color: getThemeColor('modal-background-color');
background-color: getThemifyVariable('modal-background-color');
}
position: absolute;
top: 95%;
left: 77%;
right: -65%;
left: #{15 / $base-font-size}rem;
right: #{15 / $base-font-size}rem;
display: none;
z-index: 100;
padding: #{8 / $base-font-size}rem #{16 / $base-font-size}rem;