Merge pull request #1287 from rmehta/tree-fix

[mobile] css for tree views
This commit is contained in:
Anand Doshi 2015-09-02 13:40:28 +05:30
commit d3fe6e57fb
3 changed files with 19 additions and 1 deletions

View file

@ -5,6 +5,9 @@
list-style: none;
margin: 2px 0px;
}
ul.tree-children {
padding-left: 20px;
}
.tree-link {
cursor: pointer;
}
@ -22,3 +25,8 @@
margin-left: 15px;
margin-bottom: -4px;
}
@media (max-width: 767px) {
ul.tree-children {
padding-left: 10px;
}
}

View file

@ -126,7 +126,7 @@ frappe.ui.TreeNode = Class.extend({
$(btn).html(node.expanded ? __("Collapse") : __("Expand"));
});
},
btnClass: "btn-expand"
btnClass: "btn-expand hidden-xs"
}
}
if(item.condition) {

View file

@ -9,6 +9,10 @@
margin: 2px 0px;
}
ul.tree-children {
padding-left: 20px;
}
.tree-link {
cursor: pointer;
}
@ -29,3 +33,9 @@
margin-left: 15px;
margin-bottom: -4px;
}
@media (max-width: @screen-xs) {
ul.tree-children {
padding-left: 10px;
}
}