mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-08 17:05:45 +02:00
fix
This commit is contained in:
parent
a2c6ecc093
commit
f1ec7cff4d
@ -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);
|
||||
|
1
web_src/js/globals.d.ts
vendored
1
web_src/js/globals.d.ts
vendored
@ -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> & {
|
||||
|
Loading…
x
Reference in New Issue
Block a user