Skip to content

Commit ac134ae

Browse files
committed
fix tab bar - remove broken clip-path that was cutting text
1 parent 21e66f5 commit ac134ae

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
@@ -103,7 +103,9 @@ import { FontPresetsService } from '../../services/font-presets.service';
103103
}
104104
@case ('slant') {
105105
@for (tab of tabs; track tab.name; let i = $index) {
106-
<div class="relative px-4 py-1.5 text-xs whitespace-nowrap flex items-center slanted-tab" [ngStyle]="slantTabStyles(i === 0)">{{ tab.name }}</div>
106+
<div class="px-3 py-1.5 text-xs whitespace-nowrap flex items-center relative" [ngStyle]="slantTabStyles(i === 0)">
107+
<span class="relative z-10">{{ tab.name }}</span>
108+
</div>
107109
}
108110
<div class="flex-1" [style.background]="tabBarBg()"></div>
109111
}
@@ -137,8 +139,6 @@ import { FontPresetsService } from '../../services/font-presets.service';
137139
.url-text { text-decoration: underline; cursor: pointer; }
138140
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
139141
.animate-blink { animation: blink 1s step-end infinite; }
140-
.slanted-tab { clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); padding-left: 16px; padding-right: 16px; margin-right: -4px; }
141-
.slanted-tab:first-child { clip-path: polygon(0% 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); padding-left: 12px; }
142142
`]
143143
})
144144
export class TerminalWindowComponent {

0 commit comments

Comments
 (0)