fix(editor): Make share modal content scrollable (#9025)

This commit is contained in:
Csaba Tuncsik 2024-04-03 16:50:25 +02:00 committed by GitHub
parent 77b359ada6
commit ec9fe98a35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
<template>
<Modal
width="460px"
max-height="75%"
:title="modalTitle"
:event-bus="modalBus"
:name="WORKFLOW_SHARE_MODAL_KEY"
@ -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"
@ -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
@ -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;