Merge pull request #1287 from rmehta/tree-fix
[mobile] css for tree views
This commit is contained in:
commit
d3fe6e57fb
3 changed files with 19 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue