Skip to content

Commit

Permalink
Merge pull request bagisto#9152 from devansh-webkul/dev
Browse files Browse the repository at this point in the history
fix: tree view issue fixed
  • Loading branch information
jitendra-webkul authored Dec 15, 2023
2 parents 6006481 + 32e27b5 commit 57572f5
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,24 +194,26 @@
let treeItems = [];
for (let key in items) {
let hasChildren = Object.entries(items[key][this.childrenField]).length > 0;
treeItems.push(
this.$h(
'div', {
class: [
'v-tree-item active inline-block w-full [&>.v-tree-item]:ltr:pl-6 [&>.v-tree-item]:rtl:pr-6 [&>.v-tree-item]:hidden [&.active>.v-tree-item]:block',
level > 1 ? 'ltr:!pl-14 rtl:!pr-14' : '',
level > 1 && ! hasChildren ? 'ltr:!pl-14 rtl:!pr-14' : '',
],
}, [
this.generateToggleIconComponent({
class: [
typeof items[key][this.childrenField] === 'object' && Object.keys(items[key][this.childrenField]).length ? 'icon-sort-down' : '',
hasChildren ? 'icon-sort-down' : '',
'text-xl rounded-md cursor-pointer transition-all hover:bg-gray-100 dark:hover:bg-gray-950'
],
}),
this.generateFolderIconComponent({
class: [
typeof items[key][this.childrenField] === 'object' && Object.keys(items[key][this.childrenField]).length ? 'icon-folder' : 'icon-attribute',
hasChildren ? 'icon-folder' : 'icon-attribute',
'text-2xl cursor-pointer'
],
}),
Expand Down
36 changes: 36 additions & 0 deletions public/themes/admin/default/build/assets/app-51464fb5.js

Large diffs are not rendered by default.

34 changes: 0 additions & 34 deletions public/themes/admin/default/build/assets/app-849544a8.js

This file was deleted.

2 changes: 1 addition & 1 deletion public/themes/admin/default/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"css": [
"assets/app-c04ede37.css"
],
"file": "assets/app-849544a8.js",
"file": "assets/app-51464fb5.js",
"isEntry": true,
"src": "src/Resources/assets/js/app.js"
},
Expand Down

0 comments on commit 57572f5

Please sign in to comment.