fix sidebar bugs
This commit is contained in:
parent
85bc40013c
commit
637a62be01
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue