Skip to content

Commit a2ba42c

Browse files
committed
fix powerline tab chevron shape - use clip-path instead of arrow
1 parent 9b9df4c commit a2ba42c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/live-preview/terminal-window.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ import { FontPresetsService } from '../../services/font-presets.service';
109109
}
110110
@case ('powerline') {
111111
@for (tab of tabs; track tab.name; let i = $index) {
112-
<div class="relative px-3 py-1.5 text-xs whitespace-nowrap flex items-center powerline-tab" [ngStyle]="powerlineTabStyles(i === 0)">{{ tab.name }}</div>
112+
<div class="relative px-4 py-1.5 text-xs whitespace-nowrap flex items-center powerline-tab" [ngStyle]="powerlineTabStyles(i === 0)">{{ tab.name }}</div>
113113
}
114114
<div class="flex-1" [style.background]="tabBarBg()"></div>
115115
}
@@ -129,8 +129,8 @@ import { FontPresetsService } from '../../services/font-presets.service';
129129
.animate-blink { animation: blink 1s step-end infinite; }
130130
.slanted-tab { clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); padding-left: 16px; padding-right: 16px; margin-right: -4px; }
131131
.slanted-tab:first-child { clip-path: polygon(0% 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); padding-left: 12px; }
132-
.powerline-tab { padding-right: 16px; }
133-
.powerline-tab::after { content: ''; position: absolute; right: -8px; top: 0; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 8px solid var(--tab-bg); z-index: 1; }
132+
.powerline-tab { clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%, 10px 50%); padding-left: 20px; padding-right: 14px; margin-left: -10px; }
133+
.powerline-tab:first-child { clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%); padding-left: 12px; margin-left: 0; }
134134
`]
135135
})
136136
export class TerminalWindowComponent {

0 commit comments

Comments
 (0)