Commit 7a313530 authored by Paul Slaughter's avatar Paul Slaughter Committed by Enrique Alcantara

Use wide dropdown for snippet embed

We'll want to abstract this out to a prop
on the GitLab UI component
parent b290f2d2
...@@ -45,7 +45,11 @@ export default { ...@@ -45,7 +45,11 @@ export default {
}; };
</script> </script>
<template> <template>
<gl-dropdown right :text="$options.MSG_EMBED" menu-class="gl-px-1! gl-pb-5!"> <gl-dropdown
right
:text="$options.MSG_EMBED"
menu-class="gl-px-1! gl-pb-5! gl-dropdown-menu-wide"
>
<template v-for="{ name, value } in sections"> <template v-for="{ name, value } in sections">
<gl-dropdown-header :key="`header_${name}`" data-testid="header">{{ <gl-dropdown-header :key="`header_${name}`" data-testid="header">{{
name name
...@@ -53,7 +57,7 @@ export default { ...@@ -53,7 +57,7 @@ export default {
<gl-dropdown-text <gl-dropdown-text
:key="`input_${name}`" :key="`input_${name}`"
tag="div" tag="div"
class="gl-dropdown-text-py-0" class="gl-dropdown-text-py-0 gl-dropdown-text-block"
data-testid="input" data-testid="input"
> >
<gl-form-input-group :value="value" readonly select-on-click> <gl-form-input-group :value="value" readonly select-on-click>
......
...@@ -1113,3 +1113,19 @@ header.header-content .dropdown-menu.frequent-items-dropdown-menu { ...@@ -1113,3 +1113,19 @@ header.header-content .dropdown-menu.frequent-items-dropdown-menu {
padding-bottom: 0; padding-bottom: 0;
} }
} }
// This class won't be needed once we can directly add utility classes to the child
// https://github.com/bootstrap-vue/bootstrap-vue/issues/5669
.gl-dropdown-text-block {
.b-dropdown-text {
display: block;
}
}
// This class won't be needed once we can add a prop for this in the GitLab UI component
// https://gitlab.com/gitlab-org/gitlab-ui/-/issues/966
.gl-new-dropdown {
.gl-dropdown-menu-wide {
width: $gl-dropdown-width-wide;
}
}
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