@ditojs/admin 2.85.0 → 2.85.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/admin",
3
- "version": "2.85.0",
3
+ "version": "2.85.2",
4
4
  "type": "module",
5
5
  "description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/admin",
@@ -93,5 +93,5 @@
93
93
  "typescript": "^5.9.3",
94
94
  "vite": "^7.3.1"
95
95
  },
96
- "gitHead": "81532817ab2edd74e2d70ddb85107693dad22ec7"
96
+ "gitHead": "5df899baaf437537dced07893eeb4f06c1797c53"
97
97
  }
@@ -310,6 +310,8 @@ export default DitoComponent.component('DitoTreeItem', {
310
310
  .dito-tree-item {
311
311
  --chevron-indent: #{$chevron-indent};
312
312
 
313
+ overflow: hidden;
314
+
313
315
  > .dito-tree-header {
314
316
  > .dito-tree-branch,
315
317
  > .dito-tree-leaf {
@@ -333,12 +335,21 @@ export default DitoComponent.component('DitoTreeItem', {
333
335
  .dito-tree-leaf {
334
336
  display: flex;
335
337
  flex: auto;
338
+ overflow: hidden;
339
+ min-width: 0;
336
340
  position: relative;
337
341
  margin: 1px 0;
338
342
  @include user-select(none);
339
343
  }
340
344
 
341
- .dito-tree-label,
345
+ .dito-tree-label {
346
+ display: flex;
347
+ align-items: baseline;
348
+ gap: 0.25em;
349
+ overflow: hidden;
350
+ white-space: nowrap;
351
+ }
352
+
342
353
  .dito-tree-info {
343
354
  white-space: nowrap;
344
355
  }
@@ -349,10 +360,12 @@ export default DitoComponent.component('DitoTreeItem', {
349
360
  }
350
361
 
351
362
  .dito-buttons {
363
+ flex: auto;
352
364
  display: flex;
353
365
  visibility: hidden;
354
366
  height: 100%;
355
- margin: 1px 0 1px 1em;
367
+ margin: 1px;
368
+ margin-right: 0;
356
369
  }
357
370
 
358
371
  .dito-tree-header:hover {
@@ -102,12 +102,12 @@ export default {
102
102
  }
103
103
  },
104
104
 
105
- beforeRouteUpdate(to, from, next) {
106
- this?.beforeRouteChange(to, from, next)
105
+ beforeRouteUpdate(to, from) {
106
+ return this?.beforeRouteChange(to, from)
107
107
  },
108
108
 
109
- beforeRouteLeave(to, from, next) {
110
- this?.beforeRouteChange(to, from, next)
109
+ beforeRouteLeave(to, from) {
110
+ return this?.beforeRouteChange(to, from)
111
111
  },
112
112
 
113
113
  created() {
@@ -123,7 +123,7 @@ export default {
123
123
  },
124
124
 
125
125
  methods: {
126
- beforeRouteChange(to, from, next) {
126
+ beforeRouteChange(to, from) {
127
127
  let ok = true
128
128
  const isClosing = (
129
129
  // Only handle this route change if the form is actually mapped to the
@@ -161,7 +161,7 @@ export default {
161
161
  }
162
162
  }
163
163
  }
164
- next(ok)
164
+ return ok
165
165
  },
166
166
 
167
167
  getRoutePath(recordPath) {