File tree 4 files changed +31
-31
lines changed
javascripts/ide/components
4 files changed +31
-31
lines changed Original file line number Diff line number Diff line change @@ -58,26 +58,24 @@ export default {
58
58
59
59
<template >
60
60
<div >
61
- <div class =" dropdown-input mt-3 pb-3 mb-0 border-bottom" >
62
- <div class =" position-relative" >
63
- <input
64
- ref =" searchInput"
65
- v-model =" search"
66
- :placeholder =" __('Search branches')"
67
- type =" search"
68
- class =" form-control dropdown-input-field"
69
- @input =" searchBranches"
70
- />
71
- <icon :size =" 18" name =" search" class =" input-icon" />
72
- </div >
73
- </div >
61
+ <label class =" dropdown-input pt-3 pb-3 mb-0 border-bottom block position-relative" @click.stop >
62
+ <input
63
+ ref =" searchInput"
64
+ v-model =" search"
65
+ :placeholder =" __('Search branches')"
66
+ type =" search"
67
+ class =" form-control dropdown-input-field"
68
+ @input =" searchBranches"
69
+ />
70
+ <icon :size =" 18" name =" search" class =" ml-3 input-icon" />
71
+ </label >
74
72
<div class =" dropdown-content ide-merge-requests-dropdown-content d-flex" >
75
73
<gl-loading-icon
76
74
v-if =" isLoading"
77
75
:size =" 2"
78
76
class =" mt-3 mb-3 align-self-center ml-auto mr-auto"
79
77
/>
80
- <ul v-else class =" mb-3 w-100" >
78
+ <ul v-else class =" mb-0 w-100" >
81
79
<template v-if =" hasBranches " >
82
80
<li v-for =" item in branches" :key =" item.name" >
83
81
<item :item =" item" :project-id =" currentProjectId" :is-active =" isActiveBranch(item)" />
Original file line number Diff line number Diff line change @@ -76,27 +76,25 @@ export default {
76
76
77
77
<template >
78
78
<div >
79
- <div class =" dropdown-input mt-3 pb-3 mb-0 border-bottom" >
80
- <div class =" position-relative" >
81
- <tokened-input
82
- v-model =" search"
83
- :tokens =" searchTokens"
84
- :placeholder =" __('Search merge requests')"
85
- @focus =" onSearchFocus"
86
- @input =" searchMergeRequests"
87
- @removeToken =" setSearchType(null)"
88
- />
89
- <icon :size =" 18" name =" search" class =" input-icon" />
90
- </div >
91
- </div >
79
+ <label class =" dropdown-input pt-3 pb-3 mb-0 border-bottom block" @click.stop >
80
+ <tokened-input
81
+ v-model =" search"
82
+ :tokens =" searchTokens"
83
+ :placeholder =" __('Search merge requests')"
84
+ @focus =" onSearchFocus"
85
+ @input =" searchMergeRequests"
86
+ @removeToken =" setSearchType(null)"
87
+ />
88
+ <icon :size =" 18" name =" search" class =" ml-3 input-icon" />
89
+ </label >
92
90
<div class =" dropdown-content ide-merge-requests-dropdown-content d-flex" >
93
91
<gl-loading-icon
94
92
v-if =" isLoading"
95
93
:size =" 2"
96
94
class =" mt-3 mb-3 align-self-center ml-auto mr-auto"
97
95
/>
98
96
<template v-else >
99
- <ul class =" mb-3 w-100" >
97
+ <ul class =" mb-0 w-100" >
100
98
<template v-if =" showSearchTypes " >
101
99
<li v-for =" searchType in $options.searchTypes" :key =" searchType.type" >
102
100
<button
@@ -107,7 +105,7 @@ export default {
107
105
<span class =" d-flex append-right-default ide-search-list-current-icon" >
108
106
<icon :size =" 18" name =" search" />
109
107
</span >
110
- <span > {{ searchType.label }} </span >
108
+ <span >{{ searchType.label }}</span >
111
109
</button >
112
110
</li >
113
111
</template >
Original file line number Diff line number Diff line change @@ -1216,11 +1216,10 @@ $ide-commit-header-height: 48px;
1216
1216
}
1217
1217
1218
1218
.ide-search-list-empty {
1219
- height : 230 px ;
1219
+ height : 69 px ;
1220
1220
}
1221
1221
1222
1222
.ide-merge-requests-dropdown-content {
1223
- min-height : 230px ;
1224
1223
max-height : 470px ;
1225
1224
}
1226
1225
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Fix an issue where clicking outside the MR/branch search box in WebIDE closed the dropdown.
3
+ merge_request : 31523
4
+ author :
5
+ type : fixed
You can’t perform that action at this time.
0 commit comments