diff --git a/ckanext/unfold/assets/css/unfold.css b/ckanext/unfold/assets/css/unfold.css index 3887a94..18fac2e 100644 --- a/ckanext/unfold/assets/css/unfold.css +++ b/ckanext/unfold/assets/css/unfold.css @@ -1 +1 @@ -.ckanext-jstree-search{margin-bottom:12px;display:flex;gap:12px}.ckanext-jstree-search .jstree-search--input{display:flex;position:relative;flex-basis:350px;height:35px}.ckanext-jstree-search .jstree-search--input .search-icon{height:35px;display:flex;position:absolute;right:0}.jstree-default>.jstree-no-dots .jstree-open .jstree-ocl,.jstree-default>.jstree-no-dots .jstree-closed .jstree-ocl{background-image:unset;font-style:inherit}.jstree-default>.jstree-no-dots .jstree-open .jstree-ocl:before,.jstree-default>.jstree-no-dots .jstree-closed .jstree-ocl:before{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style, 900)}.jstree-default>.jstree-no-dots .jstree-open .jstree-ocl{background-image:unset}.jstree-default>.jstree-no-dots .jstree-open .jstree-ocl:before{content:""}.jstree-default>.jstree-no-dots .jstree-closed .jstree-ocl:before{content:""}.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl:before{display:none}.jstree-default .jstree-search{background:bisque}.jstree-default .jstree-anchor[aria-expanded=true] .jstree-icon:before{content:""}.jstree-table-header:last-of-type .jstree-table-separator{display:none}.jstree-table-wrapper .jstree-table-headerwrapper,.jstree-table-wrapper .jstree-table-midwrapper{width:-webkit-fill-available;width:-moz-available;display:table}#archive-tree-error{padding:10px;border:1px solid #ced4da;border-radius:.25rem} \ No newline at end of file +.ckanext-jstree-search{margin-bottom:12px;display:flex;gap:12px}.ckanext-jstree-search .jstree-search--input{display:flex;position:relative;flex-basis:350px;height:35px}.ckanext-jstree-search .jstree-search--input .search-icon{height:35px;display:flex;position:absolute;right:0}.jstree-default>.jstree-no-dots .jstree-closed .jstree-ocl,.jstree-default>.jstree-no-dots .jstree-open .jstree-ocl{background-image:unset;font-style:inherit}.jstree-default>.jstree-no-dots .jstree-closed .jstree-ocl:before,.jstree-default>.jstree-no-dots .jstree-open .jstree-ocl:before{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style,900)}.jstree-default>.jstree-no-dots .jstree-open .jstree-ocl{background-image:unset}.jstree-default>.jstree-no-dots .jstree-open .jstree-ocl:before{content:""}.jstree-default>.jstree-no-dots .jstree-closed .jstree-ocl:before{content:""}.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl:before,.jstree-table-header:last-of-type .jstree-table-separator{display:none}.jstree-default .jstree-search{background:bisque}.jstree-default .jstree-anchor[aria-expanded=true] .jstree-icon:before{content:""}.jstree-table-wrapper .jstree-table-headerwrapper,.jstree-table-wrapper .jstree-table-midwrapper{width:-webkit-fill-available;width:-moz-available;display:table}#archive-tree-error{padding:10px;border:1px solid #ced4da;border-radius:.25rem}.js-tree-col{min-width:100px!important} diff --git a/ckanext/unfold/assets/js/unfold-init-jstree.js b/ckanext/unfold/assets/js/unfold-init-jstree.js index 19c97b7..39246da 100644 --- a/ckanext/unfold/assets/js/unfold-init-jstree.js +++ b/ckanext/unfold/assets/js/unfold-init-jstree.js @@ -55,12 +55,13 @@ ckan.module("unfold-init-jstree", function ($, _) { show_only_matches: true, }, table: { + columnWidth: "200px", columns: [ { width: 400, header: "Name" }, - { width: 100, header: "Size", value: "size" }, - { width: 100, header: "Type", value: "type" }, - { width: 100, header: "Format", value: "format" }, - { width: 100, header: "Modified at", value: "modified_at" } + { width: 100, header: "Size", value: "size", cellClass: "js-tree-col", headerClass: "js-tree-col", wideCellClass: "js-tree-col" }, + { width: 100, header: "Type", value: "type", cellClass: "js-tree-col", headerClass: "js-tree-col", wideCellClass: "js-tree-col" }, + { width: 100, header: "Format", value: "format", cellClass: "js-tree-col", headerClass: "js-tree-col", wideCellClass: "js-tree-col" }, + { width: 200, header: "Modified at", value: "modified_at", cellClass: "js-tree-col", headerClass: "js-tree-col", wideCellClass: "js-tree-col" } ], height: 700, },