1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-04-08 17:05:45 +02:00

Merge branch 'release/v1.23' into backport-33764-v1.23

This commit is contained in:
Giteabot 2025-03-12 00:27:11 +08:00 committed by GitHub
commit 98b97ec887
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions
web_src

@ -57,6 +57,10 @@
margin-right: 0;
}
#navbar .item.active {
background: var(--color-active);
}
@media (max-width: 767.98px) {
#navbar {
align-items: stretch;

@ -221,7 +221,10 @@ function initRepoDiffShowMore() {
if (!resp) {
return;
}
$target.parent().replaceWith($(resp).find('#diff-file-boxes .diff-file-body .file-body').children());
const $respFileBody = $(resp).find('#diff-file-boxes .diff-file-body .file-body');
const respFileBodyChildren = Array.from($respFileBody.children());
$target.parent().replaceWith($respFileBody.children());
for (const el of respFileBodyChildren) window.htmx.process(el);
onShowMoreFiles();
} catch (error) {
console.error('Error:', error);

@ -63,6 +63,7 @@ interface Window {
jQuery: typeof import('@types/jquery'),
htmx: Omit<typeof import('htmx.org/dist/htmx.esm.js').default, 'config'> & {
config?: Writable<typeof import('htmx.org').default.config>,
process?: (elt: Element | string) => void,
},
ui?: any,
_globalHandlerErrors: Array<ErrorEvent & PromiseRejectionEvent> & {