mirror of
https://github.com/Eugeny/tabby
synced 2024-11-14 17:07:15 +00:00
fixed start page button flickering - fixes #4298
This commit is contained in:
parent
920b2b85b3
commit
0df5fb4a34
2 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,7 @@ div
|
|||
|
||||
.list-group
|
||||
a.list-group-item.list-group-item-action.d-flex(
|
||||
*ngFor='let button of getButtons()',
|
||||
*ngFor='let button of getButtons(); trackBy: buttonsTrackBy',
|
||||
(click)='button.click()',
|
||||
)
|
||||
.d-flex.align-self-center([innerHTML]='sanitizeIcon(button.icon)')
|
||||
|
|
|
@ -32,4 +32,8 @@ export class StartPageComponent {
|
|||
sanitizeIcon (icon?: string): any {
|
||||
return this.domSanitizer.bypassSecurityTrustHtml(icon ?? '')
|
||||
}
|
||||
|
||||
buttonsTrackBy (btn: ToolbarButton): any {
|
||||
return btn.title + btn.icon
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue