Fix some UI problems for 1.23 (#33856)

Partially backport #32927 #33851
pull/33849/head^2
wxiaoguang 2 days ago committed by GitHub
parent a2c6ecc093
commit 6f8e62fa9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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> & {

Loading…
Cancel
Save