mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-31 16:57:08 +02:00
fix(editor): Make project member role selection dropdown scrollable (#19772)
This commit is contained in:
parent
47c312f7d3
commit
3fbe08ed57
|
|
@ -29,6 +29,7 @@ interface ActionDropdownProps {
|
|||
teleported?: boolean;
|
||||
disabled?: boolean;
|
||||
extraPopperClass?: string;
|
||||
maxHeight?: string | number;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<ActionDropdownProps>(), {
|
||||
|
|
@ -40,6 +41,7 @@ const props = withDefaults(defineProps<ActionDropdownProps>(), {
|
|||
hideArrow: false,
|
||||
teleported: true,
|
||||
disabled: false,
|
||||
maxHeight: '',
|
||||
});
|
||||
|
||||
const attrs = useAttrs();
|
||||
|
|
@ -96,6 +98,7 @@ defineExpose({ open, close });
|
|||
:popper-class="popperClass"
|
||||
:teleported="teleported"
|
||||
:disabled="disabled"
|
||||
:max-height="maxHeight"
|
||||
@command="onSelect"
|
||||
@visible-change="onVisibleChange"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ const onActionSelect = (role: ProjectRole) => {
|
|||
v-if="isEditable"
|
||||
placement="bottom-start"
|
||||
:items="props.actions"
|
||||
:max-height="280"
|
||||
data-test-id="project-member-role-dropdown"
|
||||
@select="onActionSelect"
|
||||
>
|
||||
|
|
@ -93,6 +94,4 @@ const onActionSelect = (role: ProjectRole) => {
|
|||
white-space: normal;
|
||||
}
|
||||
}
|
||||
|
||||
/* removeUser style no longer used since remove moved to actions menu */
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user