Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 4d11296

Browse files
committed
🚑 Hotfix slanted tabs
Fix second tab visually broken #464
1 parent c725828 commit 4d11296

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/_renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ async function initUI() {
448448
};
449449
window.currentTerm = 0;
450450
window.term[0].onprocesschange = p => {
451-
document.getElementById("shell_tab0").innerText = "MAIN - "+p;
451+
document.getElementById("shell_tab0").innerHTML = `<p>MAIN - ${p}</p>`;
452452
};
453453
// Prevent losing hardware keyboard focus on the terminal when using touch keyboard
454454
window.onmouseup = e => {

src/assets/css/main_shell.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,20 @@ ul#main_shell_tabs > li {
6868
box-sizing: border-box;
6969

7070
background: var(--color_light_black);
71+
transform: skewX(35deg);
7172
}
7273
ul#main_shell_tabs > li > p {
7374
margin: 0;
75+
transform: skewX(-35deg);
7476
}
7577
ul#main_shell_tabs > li:not(:first-child) {
7678
border-left: 0.18vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
77-
transform: skewX(35deg);
78-
}
79-
ul#main_shell_tabs > li:not(:first-child) > p {
80-
transform: skewX(-35deg);
8179
}
8280

8381
ul#main_shell_tabs > li.active {
8482
background: rgb(var(--color_r), var(--color_g), var(--color_b));
8583
color: var(--color_light_black);
8684
font-weight: bold;
87-
transform: scale(1.2);
88-
}
89-
ul#main_shell_tabs > li:not(:first-child).active {
9085
transform: skewX(35deg) scale(1.2);
9186
z-index: -1;
9287
}

0 commit comments

Comments
 (0)