feat: use icon for connections on mobile view
This commit is contained in:
@@ -50,7 +50,7 @@ erpnext.HierarchyChartMobile = class {
|
|||||||
image: node.image,
|
image: node.image,
|
||||||
parent: node.parent_id,
|
parent: node.parent_id,
|
||||||
connections: node.connections,
|
connections: node.connections,
|
||||||
is_mobile: 1
|
is_mobile: true
|
||||||
});
|
});
|
||||||
|
|
||||||
node.parent.append(node_card);
|
node.parent.append(node_card);
|
||||||
|
|||||||
@@ -16,11 +16,17 @@
|
|||||||
<div class="node-info d-flex flex-row mb-1">
|
<div class="node-info d-flex flex-row mb-1">
|
||||||
<div class="node-title text-muted ellipsis">{{ title }}</div>
|
<div class="node-title text-muted ellipsis">{{ title }}</div>
|
||||||
|
|
||||||
|
{% if is_mobile %}
|
||||||
|
<div class="node-connections text-muted ml-2 ellipsis">
|
||||||
|
· {{ connections }} <span class="fa fa-level-down"></span>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
{% if connections == 1 %}
|
{% if connections == 1 %}
|
||||||
<div class="node-connections text-muted ml-2 ellipsis">· {{ connections }} Connection</div>
|
<div class="node-connections text-muted ml-2 ellipsis">· {{ connections }} Connection</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="node-connections text-muted ml-2 ellipsis">· {{ connections }} Connections</div>
|
<div class="node-connections text-muted ml-2 ellipsis">· {{ connections }} Connections</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user