@ditojs/admin 2.6.1 → 2.6.3

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.6.1",
3
+ "version": "2.6.3",
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",
@@ -33,7 +33,7 @@
33
33
  "not ie_mob > 0"
34
34
  ],
35
35
  "dependencies": {
36
- "@ditojs/ui": "^2.6.1",
36
+ "@ditojs/ui": "^2.6.3",
37
37
  "@ditojs/utils": "^2.6.0",
38
38
  "@kyvg/vue3-notification": "^2.9.0",
39
39
  "@lk77/vue3-color": "^3.0.6",
@@ -83,7 +83,7 @@
83
83
  "vite": "^4.3.4"
84
84
  },
85
85
  "types": "types",
86
- "gitHead": "a95912074661c314de4a56debf68950e12590dbd",
86
+ "gitHead": "b231e1ff2a5152e9f8cf6742b115ae2892e2abb9",
87
87
  "scripts": {
88
88
  "build": "vite build",
89
89
  "watch": "yarn build --mode 'development' --watch",
@@ -233,17 +233,26 @@ export default DitoComponent.component('DitoPane', {
233
233
  flex-flow: row wrap;
234
234
  align-content: flex-start;
235
235
  align-items: baseline;
236
+ padding: $content-padding;
236
237
  // Remove the padding added by `.dito-container` inside `.dito-pane`:
237
- padding: ($content-padding - $form-spacing)
238
- ($content-padding - $form-spacing-half);
238
+ margin: (-$form-spacing) (-$form-spacing-half);
239
239
  max-width: calc(var(--max-content-width) + $form-spacing);
240
240
  // Use `flex: 0%` for all `.dito-pane` except `.dito-pane-main`,
241
241
  // so that the `.dito-buttons-main` can be moved all the way to the bottom.
242
242
  flex: 0%;
243
243
 
244
244
  &--single {
245
- // Clear margin from above.
246
- padding: $content-padding;
245
+ // Clear negative margin from above.
246
+ margin: 0;
247
+ }
248
+
249
+ .dito-scroll > &:not(&--single) {
250
+ // Root-level panes inside scroll views need to move the negative margin
251
+ // used to remove the padding added by `.dito-container` inside
252
+ // `.dito-pane` to the padding:
253
+ padding: ($content-padding - $form-spacing)
254
+ ($content-padding - $form-spacing-half);
255
+ margin: 0;
247
256
  }
248
257
 
249
258
  &.dito-pane-main {
@@ -757,17 +757,20 @@ export default DitoComponent.component('DitoSchema', {
757
757
 
758
758
  .dito-schema {
759
759
  box-sizing: border-box;
760
- // To display schema next to buttons:
760
+ // To display edit buttons next to schema:
761
761
  display: flex;
762
- align-items: flex-start;
762
+ align-items: stretch;
763
763
  min-height: 100%;
764
764
 
765
765
  > .dito-schema-content {
766
766
  flex: 0 1 100%;
767
767
  max-width: 100%;
768
- // So that schema buttons can be sticky to the bottom:
769
- display: flex;
770
- flex-direction: column;
768
+ // So that schema buttons can be sticky to the bottom.
769
+ // NOTE: We also need grid for `TransitionHeight` to work well. Switching
770
+ // to flex box here causes jumpy collapsing transitions.
771
+ display: grid;
772
+ grid-template-rows: min-content;
773
+ grid-template-columns: 100%;
771
774
 
772
775
  > *:only-child {
773
776
  grid-row-end: none;
@@ -116,9 +116,7 @@ export default DitoTypeComponent.register('object', {
116
116
  border: $border-style;
117
117
  border-radius: $border-radius;
118
118
  margin: 0;
119
- // Only add what's not already added by the nested '.dito-pane' as padding,
120
- // in order to have `$form-spacing` all around.
121
- padding: 0 $form-spacing-half;
119
+ padding: $form-spacing;
122
120
  box-sizing: border-box;
123
121
 
124
122
  .dito-object-content {
@@ -127,7 +125,7 @@ export default DitoTypeComponent.register('object', {
127
125
 
128
126
  > .dito-edit-buttons {
129
127
  flex: 1 0 0%;
130
- padding: $form-spacing;
128
+ margin-left: $form-spacing;
131
129
  }
132
130
  }
133
131
  </style>