Commit 293c07bf authored by Simon Knox's avatar Simon Knox

Merge branch '284471-fix-dropdown-button-truncation' into 'master'

Fix vulnerability report filter dropdown button text truncation

See merge request gitlab-org/gitlab!65634
parents e809b6d9 a65218b7
...@@ -74,14 +74,16 @@ export default { ...@@ -74,14 +74,16 @@ export default {
@hide="$emit('dropdown-hide')" @hide="$emit('dropdown-hide')"
> >
<template #button-text> <template #button-text>
<div class="gl-display-flex">
<gl-truncate <gl-truncate
:text="firstSelectedOption" :text="firstSelectedOption"
class="gl-min-w-0 gl-mr-2" class="gl-min-w-0"
:data-qa-selector="qaSelector" :data-qa-selector="qaSelector"
/> />
<span v-if="extraOptionCount" class="gl-mr-2"> <span v-if="extraOptionCount" class="gl-ml-2">
{{ n__('+%d more', '+%d more', extraOptionCount) }} {{ n__('+%d more', '+%d more', extraOptionCount) }}
</span> </span>
</div>
</template> </template>
<template v-if="showSearchBox" #header> <template v-if="showSearchBox" #header>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment