Skip to content

Commit 0fb1c1f

Browse files
authored
Fix "Filter by commit" Dropdown (#31695) (#31696)
A separate backport of #31695 for 1.22 Fix #31673
1 parent 6026785 commit 0fb1c1f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

web_src/js/components/DiffCommitSelector.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default {
202202
>
203203
<svg-icon name="octicon-git-commit"/>
204204
</button>
205-
<div class="left menu" id="diff-commit-selector-menu" :class="{visible: menuVisible}" v-show="menuVisible" v-cloak :aria-expanded="menuVisible ? 'true': 'false'">
205+
<div class="left menu transition" id="diff-commit-selector-menu" :class="{visible: menuVisible}" v-show="menuVisible" v-cloak :aria-expanded="menuVisible ? 'true': 'false'">
206206
<div class="loading-indicator is-loading" v-if="isLoading"/>
207207
<div v-if="!isLoading" class="vertical item" id="diff-commit-list-show-all" role="menuitem" @keydown.enter="showAllChanges()" @click="showAllChanges()">
208208
<div class="gt-ellipsis">
@@ -276,6 +276,7 @@ export default {
276276
}
277277
278278
#diff-commit-selector-menu {
279+
margin-top: 0.25em;
279280
overflow-x: hidden;
280281
max-height: 450px;
281282
}
@@ -291,10 +292,12 @@ export default {
291292
flex-direction: row;
292293
line-height: 1.4;
293294
padding: 7px 14px !important;
294-
border-top: 1px solid var(--color-secondary) !important;
295295
gap: 0.25em;
296296
}
297-
297+
#diff-commit-selector-menu .item:not(:first-child),
298+
#diff-commit-selector-menu .info:not(:first-child) {
299+
border-top: 1px solid var(--color-secondary) !important;
300+
}
298301
#diff-commit-selector-menu .item:focus {
299302
color: var(--color-text);
300303
background: var(--color-hover);

0 commit comments

Comments
 (0)