Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/components/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class Root extends Directory {
const arrow = this.state.expanded ? 'octicon octicon-chevron-down' : 'octicon octicon-chevron-right';
return (
<div className="tree-node">
<button className="root-expander" onClick={() => this.toggleFolder(`${this.state.rootPath}/explore/${this.state.branch}`)} >
<button className="root-expander btn btn-default" onClick={() => this.toggleFolder(`${this.state.rootPath}/explore/${this.state.branch}`)} >
<i className={arrow} />
</button>
<a href={this.state.rootPath} className="submenu-files" >
Expand All @@ -47,4 +47,4 @@ export default class Root extends Directory {
</div>
);
}
}
}
19 changes: 13 additions & 6 deletions src/main/resources/explorer/assets/plugin-explorer.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,26 @@ li.active .file-tree {
}
.root-expander {
position: absolute;
padding: 2px 2px 0 5px;
right: 5px;
padding: 2px 1px 0px 5px;
width: 21px;
right: 15px;
top: 10px;
box-shadow: none;
line-height: 1.5;
text-align: center;
background-color: #f4f4f4;
border: 1px solid #ddd;
border-radius: 3px;
outline: none !important;
}
.root-expander > .octicon {
font-size: 18px;
font-weight: 700;
.root-expander > .octicon-chevron-right {
width: 12px;
}
.root-expander > .octicon-chevron-down {
width: 14px;
}
.root-expander:hover > .octicon {
color: rgb(60, 141, 188);
}
.file-tree button {
border: none;
Expand All @@ -70,4 +77,4 @@ li.active .file-tree {
.file-tree button:hover,
.file-node > a:hover {
opacity: 0.6;
}
}