diff --git a/app/assets/stylesheets/steps/step.scss b/app/assets/stylesheets/steps/step.scss index 34d996de1..afba3f52d 100644 --- a/app/assets/stylesheets/steps/step.scss +++ b/app/assets/stylesheets/steps/step.scss @@ -170,35 +170,35 @@ pointer-events: none; } } +} - .storage-usage { - @include font-small; - align-self: center; - color: $color-black; - display: flex; - margin-top: 1em; - width: 400px; +.storage-usage { + @include font-small; + align-self: center; + color: $color-black; + display: flex; + margin-top: 1em; + width: 400px; - .progress-container { - background-color: $color-white; - border-radius: 2px; - flex-grow: 1; - height: 4px; - margin: 1em 1em 1em 0; - overflow: hidden; + .progress-container { + background-color: $color-white; + border-radius: 2px; + flex-grow: 1; + height: 4px; + margin: 1em 1em 1em 0; + overflow: hidden; + position: relative; + + .progress-bar { + background-color: $brand-primary; + height: 100%; position: relative; - - .progress-bar { - background-color: $brand-primary; - height: 100%; - position: relative; - transition: 1s $timing-function-sharp; - } + transition: 1s $timing-function-sharp; } + } - .progress-message { - line-height: 2em; - } + .progress-message { + line-height: 2em; } } diff --git a/app/javascript/vue/results/result.vue b/app/javascript/vue/results/result.vue index aff064c96..655bd3eac 100644 --- a/app/javascript/vue/results/result.vue +++ b/app/javascript/vue/results/result.vue @@ -5,124 +5,127 @@ @dragover.prevent :class="{ 'bg-sn-super-light-blue': dragingFile, 'bg-white': !dragingFile }" > -
{{ i18n.t('my_modules.results.drop_message', { name: result.attributes.name }) }}
-
-
- - - - -
-
- - - +
+ -
- + - -
-
- + +
+
+ +
+
-
@@ -149,7 +152,6 @@ result: { type: Object, required: true }, resultToReload: { type: Number, required: false }, activeDragResult: { - type: Number, required: false } }, @@ -170,7 +172,8 @@ { text: I18n.t('protocols.steps.insert.well_plate_options.2_x_3'), emit: 'create:table', params: [[2, 3], true] } ], editingName: false, - confirmingDelete: false + confirmingDelete: false, + isCollapsed: false } }, mixins: [UtilsMixin, AttachmentsMixin, WopiFileModal, OveMixin], @@ -300,6 +303,9 @@ this.loadElements(); }, methods: { + toggleCollapsed() { + this.isCollapsed = !this.isCollapsed; + }, dragEnter(e) { if (!this.urls.upload_attachment_url) return;