Commit 47a3b9ab authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/212874/fixedProjectCaretButtonSize' into 'master'

Fixed width of project select toggle button

See merge request gitlab-org/gitlab!44713
parents fe9408fa 299ea056
...@@ -324,15 +324,8 @@ img.emoji { ...@@ -324,15 +324,8 @@ img.emoji {
} }
.project-item-select-holder { .project-item-select-holder {
display: inline-block;
position: relative;
.project-item-select { .project-item-select {
position: absolute;
top: 0;
right: 0;
min-width: 250px; min-width: 250px;
visibility: hidden;
} }
} }
......
...@@ -376,33 +376,11 @@ ...@@ -376,33 +376,11 @@
} }
.project-item-select-holder.btn-group { .project-item-select-holder.btn-group {
display: flex;
overflow: hidden;
float: right;
.new-project-item-link {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.new-project-item-select-button { .new-project-item-select-button {
width: 32px; max-width: 44px;
} }
} }
.empty-state .project-item-select-holder.btn-group { .empty-state .project-item-select-holder.btn-group {
float: none; max-width: 320px;
justify-content: center;
.btn {
// overrides styles applied to plain `.empty-state .btn`
margin: 10px 0;
max-width: 300px;
width: auto;
@include media-breakpoint-down(xs) {
max-width: 250px;
}
}
} }
- if any_projects?(@projects) - if any_projects?(@projects)
.project-item-select-holder.btn-group .project-item-select-holder.btn-group.gl-ml-auto.gl-mr-auto.gl-py-3.gl-relative.gl-display-flex.gl-overflow-hidden
%a.btn.btn-success.new-project-item-link.qa-new-project-item-link{ href: '', data: { label: local_assigns[:label], type: local_assigns[:type] } } %a.btn.gl-button.btn-success.new-project-item-link.block-truncated.qa-new-project-item-link{ href: '', data: { label: local_assigns[:label], type: local_assigns[:type] }, class: "gl-m-0!" }
= loading_icon(color: 'light') = loading_icon(color: 'light')
= project_select_tag :project_path, class: "project-item-select", data: { include_groups: local_assigns[:include_groups], order_by: 'last_activity_at', relative_path: local_assigns[:path], with_shared: local_assigns[:with_shared], include_projects_in_subgroups: local_assigns[:include_projects_in_subgroups] }, with_feature_enabled: local_assigns[:with_feature_enabled] = project_select_tag :project_path, class: "project-item-select gl-absolute gl-visibility-hidden", data: { include_groups: local_assigns[:include_groups], order_by: 'last_activity_at', relative_path: local_assigns[:path], with_shared: local_assigns[:with_shared], include_projects_in_subgroups: local_assigns[:include_projects_in_subgroups] }, with_feature_enabled: local_assigns[:with_feature_enabled]
%button.btn.btn-success.new-project-item-select-button.qa-new-project-item-select-button.gl-p-0 %button.btn.dropdown-toggle.btn-success.btn-md.gl-button.gl-dropdown-toggle.dropdown-toggle-split.new-project-item-select-button.qa-new-project-item-select-button.gl-p-0.gl-w-100{ class: "gl-m-0!", 'aria-label': _('Toggle project select') }
= sprite_icon('chevron-down') = sprite_icon('chevron-down')
...@@ -27553,6 +27553,9 @@ msgstr "" ...@@ -27553,6 +27553,9 @@ msgstr ""
msgid "Toggle navigation" msgid "Toggle navigation"
msgstr "" msgstr ""
msgid "Toggle project select"
msgstr ""
msgid "Toggle sidebar" msgid "Toggle sidebar"
msgstr "" msgstr ""
......
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