mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-26 19:34:06 +00:00
2bcf950b78
Adds a search box and a file-extension filter to the pull request diff sidebar, so reviewers can narrow a large diff down to the files they care about. Both filters apply to the file tree and to the diff itself. The extension menu follows GitHub: extensions sorted alphabetically, dotfiles and extension-less files in their own buckets, and the selection kept in the same `file-filters[]` query parameter, so a filtered view is shareable and survives a reload. The menu can list every extension in a diff, so `createTippy` gains an opt-in `limitSizeToViewport` option that caps a popup to the space left in the viewport and scrolls its content. Popups that do not ask for it are unchanged. Closes https://github.com/go-gitea/gitea/issues/27256 Signed-off-by: silverwind <me@silverwind.io> Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com> Co-authored-by: Copilot <copilot@github.com> Co-authored-by: Nicolas <bircni@icloud.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
79 lines
2.1 KiB
CSS
79 lines
2.1 KiB
CSS
/*
|
|
Gitea's tailwind-style CSS helper classes have `gt-` prefix.
|
|
Gitea's private styles use `g-` prefix.
|
|
*/
|
|
|
|
.gt-ellipsis {
|
|
overflow: hidden !important;
|
|
white-space: nowrap !important;
|
|
text-overflow: ellipsis !important;
|
|
}
|
|
|
|
.g-table-auto-ellipsis td.auto-ellipsis {
|
|
position: relative;
|
|
}
|
|
|
|
.g-table-auto-ellipsis td.auto-ellipsis span {
|
|
position: absolute;
|
|
inset: 0;
|
|
padding: inherit;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.interact-fg { color: inherit !important; }
|
|
.interact-fg:hover { color: var(--color-primary) !important; }
|
|
.interact-fg:active { color: var(--color-primary-active) !important; }
|
|
|
|
.interact-bg { background: transparent !important; }
|
|
.interact-bg:hover { background: var(--color-hover) !important; }
|
|
.interact-bg:active { background: var(--color-active) !important; }
|
|
|
|
/* primary-color dot centered on the top-right corner of the element */
|
|
.indicator-dot {
|
|
position: relative;
|
|
}
|
|
|
|
.indicator-dot::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 50%;
|
|
background: var(--color-primary);
|
|
border: 1px solid var(--color-secondary);
|
|
transform: translate(50%, -50%);
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
/* double selector so it wins over .tw-flex (old .gt-df) etc */
|
|
.not-mobile.not-mobile {
|
|
display: none !important;
|
|
}
|
|
}
|
|
@media (min-width: 767.98px) {
|
|
.only-mobile.only-mobile {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
.tab-size-1 { tab-size: 1 !important; }
|
|
.tab-size-2 { tab-size: 2 !important; }
|
|
.tab-size-3 { tab-size: 3 !important; }
|
|
.tab-size-4 { tab-size: 4 !important; }
|
|
.tab-size-5 { tab-size: 5 !important; }
|
|
.tab-size-6 { tab-size: 6 !important; }
|
|
.tab-size-7 { tab-size: 7 !important; }
|
|
.tab-size-8 { tab-size: 8 !important; }
|
|
.tab-size-9 { tab-size: 9 !important; }
|
|
.tab-size-10 { tab-size: 10 !important; }
|
|
.tab-size-11 { tab-size: 11 !important; }
|
|
.tab-size-12 { tab-size: 12 !important; }
|
|
.tab-size-13 { tab-size: 13 !important; }
|
|
.tab-size-14 { tab-size: 14 !important; }
|
|
.tab-size-15 { tab-size: 15 !important; }
|
|
.tab-size-16 { tab-size: 16 !important; }
|