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) {
|
handleFileClick(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (!this.isDeleting) {
|
if (this.props.name !== 'root' && !this.isDeleting) {
|
||||||
this.props.setSelectedFile(this.props.id);
|
this.props.setSelectedFile(this.props.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,12 +122,12 @@
|
||||||
.sidebar__file-item-options {
|
.sidebar__file-item-options {
|
||||||
@extend %modal;
|
@extend %modal;
|
||||||
@include themify() {
|
@include themify() {
|
||||||
background-color: getThemeColor('modal-background-color');
|
background-color: getThemifyVariable('modal-background-color');
|
||||||
}
|
}
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 95%;
|
top: 95%;
|
||||||
left: 77%;
|
left: #{15 / $base-font-size}rem;
|
||||||
right: -65%;
|
right: #{15 / $base-font-size}rem;
|
||||||
display: none;
|
display: none;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
padding: #{8 / $base-font-size}rem #{16 / $base-font-size}rem;
|
padding: #{8 / $base-font-size}rem #{16 / $base-font-size}rem;
|
||||||
|
|
Loading…
Reference in a new issue