Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7a313530
Commit
7a313530
authored
Aug 24, 2020
by
Paul Slaughter
Committed by
Enrique Alcantara
Aug 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use wide dropdown for snippet embed
We'll want to abstract this out to a prop on the GitLab UI component
parent
b290f2d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
app/assets/javascripts/snippets/components/embed_dropdown.vue
...assets/javascripts/snippets/components/embed_dropdown.vue
+6
-2
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+16
-0
No files found.
app/assets/javascripts/snippets/components/embed_dropdown.vue
View file @
7a313530
...
@@ -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
>
...
...
app/assets/stylesheets/framework/dropdowns.scss
View file @
7a313530
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment