File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 57
57
margin-right : 0 ;
58
58
}
59
59
60
+ # navbar .item .active {
61
+ background : var (--color-active );
62
+ }
63
+
60
64
@media (max-width : 767.98px ) {
61
65
# navbar {
62
66
align-items : stretch;
Original file line number Diff line number Diff line change @@ -221,7 +221,10 @@ function initRepoDiffShowMore() {
221
221
if ( ! resp ) {
222
222
return ;
223
223
}
224
- $target . parent ( ) . replaceWith ( $ ( resp ) . find ( '#diff-file-boxes .diff-file-body .file-body' ) . children ( ) ) ;
224
+ const $respFileBody = $ ( resp ) . find ( '#diff-file-boxes .diff-file-body .file-body' ) ;
225
+ const respFileBodyChildren = Array . from ( $respFileBody . children ( ) ) ;
226
+ $target . parent ( ) . replaceWith ( $respFileBody . children ( ) ) ;
227
+ for ( const el of respFileBodyChildren ) window . htmx . process ( el ) ;
225
228
onShowMoreFiles ( ) ;
226
229
} catch ( error ) {
227
230
console . error ( 'Error:' , error ) ;
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ interface Window {
63
63
jQuery : typeof import ( '@types/jquery' ) ,
64
64
htmx : Omit < typeof import ( 'htmx.org/dist/htmx.esm.js' ) . default , 'config' > & {
65
65
config ?: Writable < typeof import ( 'htmx.org' ) . default . config > ,
66
+ process ?: ( elt : Element | string ) => void ,
66
67
} ,
67
68
ui ?: any ,
68
69
_globalHandlerErrors : Array < ErrorEvent & PromiseRejectionEvent > & {
You can’t perform that action at this time.
0 commit comments