@oxygen-cms/ui 2.1.1 → 2.1.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": "@oxygen-cms/ui",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Various utilities for UI-building in Vue.js",
5
5
  "main": "none",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  <p v-if="!isUploading" class="modal-card-title">Upload files to '{{ currentPath }}'</p>
5
5
  <p v-else class="modal-card-title">Uploading {{ filesToUpload.length }} item(s)</p>
6
6
  </header>
7
- <section v-if="!isUploading" class="modal-card-body">
7
+ <section v-if="!isUploading" class="modal-card-body upload-body">
8
8
  <b-upload v-model="filesToUpload"
9
9
  multiple
10
10
  drag-drop expanded>
@@ -115,6 +115,11 @@ export default {
115
115
  </script>
116
116
 
117
117
  <style scoped>
118
+ .upload-body {
119
+ max-height: 60vh;
120
+ overflow-y: auto;
121
+ }
122
+
118
123
  .image-preview {
119
124
  display: flex;
120
125
  flex-direction: column;
@@ -28,7 +28,7 @@
28
28
  Uploading {{ filesToUpload.length }} item(s)
29
29
  </p>
30
30
  </header>
31
- <section v-if="!isUploading" class="modal-card-body" style="overflow: visible;">
31
+ <section v-if="!isUploading" class="modal-card-body upload-body">
32
32
  <b-upload v-model="filesToUpload"
33
33
  multiple
34
34
  drag-drop expanded>
@@ -55,7 +55,7 @@
55
55
  </span>
56
56
  </div>
57
57
  </section>
58
- <section v-else class="modal-card-body" style="overflow: visible;">
58
+ <section v-else class="modal-card-body upload-body">
59
59
  <b-progress size="is-medium" type="is-info"></b-progress>
60
60
  </section>
61
61
  <footer class="modal-card-foot is-flex">
@@ -153,7 +153,6 @@ export default {
153
153
  }
154
154
 
155
155
  .media-upload-dropdown .dropdown-menu {
156
- overflow: visible !important;
157
156
  min-width: 30rem;
158
157
  }
159
158
 
@@ -164,6 +163,11 @@ export default {
164
163
  </style>
165
164
 
166
165
  <style scoped>
166
+ .upload-body {
167
+ max-height: 60vh;
168
+ overflow-y: auto;
169
+ }
170
+
167
171
  .image-preview {
168
172
  display: flex;
169
173
  flex-direction: column;
@@ -17,9 +17,7 @@ export default function(ui) {
17
17
  icon: 'file-alt',
18
18
  listAction: '/pages',
19
19
  listPermission: 'pages.getList',
20
- addIcon: 'plus',
21
20
  addPermission: 'pages.postCreate',
22
- addAction: '/pages/create',
23
21
  addDropdownComponent: CreatePageDropdown,
24
22
  items: {
25
23
  }
@@ -29,9 +27,7 @@ export default function(ui) {
29
27
  icon: 'puzzle-piece',
30
28
  listAction: '/partials',
31
29
  listPermission: 'partials.getList',
32
- addIcon: 'plus',
33
30
  addPermission: 'partials.postCreate',
34
- addAction: '/partials/create',
35
31
  addDropdownComponent: CreatePartialDropdown,
36
32
  items: {
37
33
  }