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): Make share modal content scrollable #9025

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 21 additions & 1 deletion packages/editor-ui/src/components/WorkflowShareModal.ee.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<Modal
width="460px"
max-height="75%"
:title="modalTitle"
:event-bus="modalBus"
:name="WORKFLOW_SHARE_MODAL_KEY"
Expand Down Expand Up @@ -30,7 +31,7 @@
})
}}
</n8n-info-tip>
<enterprise-edition :features="[EnterpriseEditionFeature.Sharing]">
<enterprise-edition :features="[EnterpriseEditionFeature.Sharing]" :class="$style.content">
<n8n-user-select
v-if="workflowPermissions.updateSharing"
class="mb-s"
Expand All @@ -51,6 +52,7 @@
:current-user-id="currentUser.id"
:delete-label="$locale.baseText('workflows.shareModal.list.delete')"
:readonly="!workflowPermissions.updateSharing"
:class="$style.usersList"
>
<template #actions="{ user }">
<n8n-select
Expand Down Expand Up @@ -486,10 +488,28 @@ export default defineComponent({
</script>

<style module lang="scss">
.container {
display: flex;
flex-direction: column;
height: 100%;
}

.container > * {
overflow-wrap: break-word;
}

.content {
display: flex;
flex-direction: column;
height: 100%;
overflow-y: auto;
}

.usersList {
height: 100%;
overflow-y: auto;
}

.actionButtons {
display: flex;
justify-content: flex-end;
Expand Down