mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: align submodule items in tree
This commit is contained in:
parent
e33f270f1a
commit
aedf3b295c
2 changed files with 22 additions and 8 deletions
|
|
@ -85,7 +85,11 @@ const NodeItemIcon = React.memo(function NodeItemIcon({
|
|||
if (icons === 'native') return <Icon type={getIconType(node)} />
|
||||
return (
|
||||
<>
|
||||
<Icon placeholder={node.type !== 'tree'} type={getIconType(node)} />
|
||||
<Icon
|
||||
className={'node-item-type-icon'}
|
||||
placeholder={node.type !== 'tree'}
|
||||
type={getIconType(node)}
|
||||
/>
|
||||
{node.type === 'commit' ? (
|
||||
<Icon type={getIconType(node)} />
|
||||
) : (
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue