/
githubmirror
/
tabby
Обзор
Документация
Войти
/
githubmirror
/
tabby
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tabby-core/src/components/tabHeader.component.pug
32 строки
1 KB
Artur Xavier
feat(core): add pinned tabs (#11146)
11 июл 2026, 12:33
Не верифицирован
11 июл 2026, 12:33
1069978
Код
Авторство
О чём код?
.colorbar([style.background-color]='tab.color', *ngIf='tab.color != null') .progressbar([style.width]='progress + "%"', *ngIf='progress != null') .activity-indicator(*ngIf='tab.activity$|async') .current-tab-indicator .index(*ngIf='!config.store.terminal.hideTabIndex && hostApp.platform === Platform.macOS', cdkDragHandle) {{index + 1}} .index(*ngIf='!config.store.terminal.hideTabIndex && hostApp.platform !== Platform.macOS') {{index + 1}} profile-icon( *ngIf='config.store.terminal.showTabProfileIcon && tab.icon', [icon]='tab.icon', [color]='tab.color ?? undefined' ) .pin-indicator(*ngIf='tab.pinned') i.fas.fa-thumbtack .name( [class.no-hover]='config.store.terminal.hideCloseButton && config.store.terminal.hideTabOptionsButton' cdkDrag, cdkDragRootElement='tab-header', [cdkDragData]='tab', (cdkDragStarted)='onTabDragStart(tab)', (cdkDragEnded)='onTabDragEnd()', ) {{tab.customTitle || tab.title}} .buttons button(*ngIf='!config.store.terminal.hideTabOptionsButton',(click)='onContextMenu($event)') !{require('../icons/tab-options.svg')} button(*ngIf='!config.store.terminal.hideCloseButton && !tab.effectivelyPinned',(click)='app.closeTab(tab, true)') × ng-content