1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-25 11:48:37 +00:00

Fix git graph page (#34948) (#34949)

This commit is contained in:
wxiaoguang
2025-07-04 23:33:17 +08:00
committed by GitHub
parent 9adf175df0
commit 4aba42519d
4 changed files with 19 additions and 7 deletions

View File

@@ -71,11 +71,13 @@
#git-graph-container li .author {
color: var(--color-text-light);
flex-shrink: 0;
}
#git-graph-container li .time {
color: var(--color-text-light-3);
font-size: 80%;
flex-shrink: 0;
}
#git-graph-container li a:not(.ui):hover {
@@ -109,6 +111,10 @@
background-color: var(--color-secondary-alpha-30);
}
#git-graph-container #rev-list .commit-refs {
flex-shrink: 0;
}
#git-graph-container #rev-list .commit-refs .button {
padding: 2px 4px;
margin-right: 0.25em;

View File

@@ -84,9 +84,9 @@ export function initRepoGraphGit() {
const flowSelectRefsDropdown = document.querySelector('#flow-select-refs-dropdown');
const $dropdown = fomanticQuery(flowSelectRefsDropdown);
$dropdown.dropdown({clearable: true});
$dropdown.dropdown('set selected', dropdownSelected);
$dropdown.dropdown({
clearable: true,
fullTextSeach: 'exact',
onRemove(toRemove: string) {
if (toRemove === '...flow-hide-pr-refs') {
params.delete('hide-pr-refs');
@@ -110,7 +110,6 @@ export function initRepoGraphGit() {
updateGraph();
},
});
$dropdown.dropdown('set selected', dropdownSelected);
graphContainer.addEventListener('mouseenter', (e: DOMEvent<MouseEvent>) => {
if (e.target.matches('#rev-list li')) {