fix(editor): Make project member role selection dropdown scrollable (#19772)

This commit is contained in:
Csaba Tuncsik 2025-09-22 08:44:21 +02:00 committed by GitHub
parent 47c312f7d3
commit 3fbe08ed57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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"
>

View File

@ -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>