mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-22 09:28:45 +03:00
Fix some UI problems for 1.23 (#33856)
Partially backport #32927 #33851
This commit is contained in:
@ -57,6 +57,10 @@
|
|||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#navbar .item.active {
|
||||||
|
background: var(--color-active);
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 767.98px) {
|
@media (max-width: 767.98px) {
|
||||||
#navbar {
|
#navbar {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
@ -221,7 +221,10 @@ function initRepoDiffShowMore() {
|
|||||||
if (!resp) {
|
if (!resp) {
|
||||||
return;
|
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();
|
onShowMoreFiles();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error:', 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'),
|
jQuery: typeof import('@types/jquery'),
|
||||||
htmx: Omit<typeof import('htmx.org/dist/htmx.esm.js').default, 'config'> & {
|
htmx: Omit<typeof import('htmx.org/dist/htmx.esm.js').default, 'config'> & {
|
||||||
config?: Writable<typeof import('htmx.org').default.config>,
|
config?: Writable<typeof import('htmx.org').default.config>,
|
||||||
|
process?: (elt: Element | string) => void,
|
||||||
},
|
},
|
||||||
ui?: any,
|
ui?: any,
|
||||||
_globalHandlerErrors: Array<ErrorEvent & PromiseRejectionEvent> & {
|
_globalHandlerErrors: Array<ErrorEvent & PromiseRejectionEvent> & {
|
||||||
|
Reference in New Issue
Block a user