Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(editor): Update execution view layout #6882

Merged
merged 3 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export default defineComponent({

.icons {
display: flex;
align-items: baseline;
align-items: center;
}

.icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</div>
<div v-else :class="$style.previewContainer">
<div
:class="{ [$style.executionDetails]: true, [$style.sidebarCollapsed]: sidebarCollapsed }"
:class="$style.executionDetails"
v-if="activeExecution"
:data-test-id="`execution-preview-details-${executionId}`"
>
Expand Down Expand Up @@ -128,14 +128,12 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';

import { useMessage } from '@/composables';
import WorkflowPreview from '@/components/WorkflowPreview.vue';
import type { IExecutionUIData } from '@/mixins/executionsHelpers';
import { executionHelpers } from '@/mixins/executionsHelpers';
import { MODAL_CONFIRM, VIEWS } from '@/constants';
import { useUIStore } from '@/stores/ui.store';
import { ElDropdown } from 'element-plus';

type RetryDropdownRef = InstanceType<typeof ElDropdown> & { hide: () => void };
Expand All @@ -158,13 +156,9 @@ export default defineComponent({
};
},
computed: {
...mapStores(useUIStore),
executionUIDetails(): IExecutionUIData | null {
return this.activeExecution ? this.getExecutionUIDetails(this.activeExecution) : null;
},
sidebarCollapsed(): boolean {
return this.uiStore.sidebarMenuCollapsed;
},
executionMode(): string {
return this.activeExecution?.mode || '';
},
Expand Down Expand Up @@ -197,7 +191,7 @@ export default defineComponent({
// Hide dropdown when clicking outside of current document
const retryDropdownRef = this.$refs.retryDropdown as RetryDropdownRef | undefined;
if (retryDropdownRef && event.relatedTarget === null) {
retryDropdownRef.hide();
retryDropdownRef.handleClose();
}
},
},
Expand All @@ -206,15 +200,16 @@ export default defineComponent({

<style module lang="scss">
.previewContainer {
height: calc(100% - $header-height);
position: relative;
height: 100%;
overflow: hidden;
}

.executionDetails {
position: absolute;
padding: var(--spacing-m);
padding-right: var(--spacing-xl);
width: calc(100% - 510px);
width: 100%;
display: flex;
justify-content: space-between;
transition: all 150ms ease-in-out;
Expand All @@ -223,10 +218,6 @@ export default defineComponent({
& * {
pointer-events: all;
}

&.sidebarCollapsed {
width: calc(100% - 375px);
}
}

.spinner {
Expand Down
Loading