diff --git a/src/components/Node.tsx b/src/components/Node.tsx
index b0d1187..5ee3532 100644
--- a/src/components/Node.tsx
+++ b/src/components/Node.tsx
@@ -85,7 +85,11 @@ const NodeItemIcon = React.memo(function NodeItemIcon({
if (icons === 'native') return
return (
<>
-
+
{node.type === 'commit' ? (
) : (
diff --git a/src/content.less b/src/content.less
index 81f6ee7..3ab52fe 100644
--- a/src/content.less
+++ b/src/content.less
@@ -358,12 +358,25 @@
transition: all 0.5s ease;
white-space: nowrap;
- &-icon {
+ .icon-size() {
width: 16px;
height: 16px;
+ }
+
+ &-type-icon {
+ margin-right: 4px;
+ .icon-size();
+
+ & + .octicon-wrapper,
+ & + .node-item-icon {
+ margin-right: 6px;
+ }
+ }
+
+ &-icon {
+ .icon-size();
object-fit: contain;
vertical-align: text-bottom;
- padding-left: 4px;
box-sizing: content-box;
&.dim {
@@ -379,12 +392,9 @@
.node-item-label {
overflow: hidden;
text-overflow: ellipsis;
-
- .node-item-name {
- padding-left: 6px;
- }
}
- .node-item:hover .node-item-name {
+
+ &:hover .node-item-name {
text-decoration: underline;
}