Skip to content

Commit 515a52c

Browse files
Copilotalexr00
andcommitted
Fix subtitle visibility and remove side borders/shadows
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent cb46ded commit 515a52c

File tree

1 file changed

+7
-28
lines changed

1 file changed

+7
-28
lines changed

webviews/editorWebview/index.css

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -59,44 +59,24 @@ textarea:focus,
5959
background: var(--vscode-editor-background);
6060
}
6161

62-
/* Shadow effect when stuck */
63-
.title::before {
62+
/* Shadow effect when stuck - only on bottom */
63+
.title.stuck::after {
6464
content: '';
6565
position: absolute;
66-
top: 0;
67-
left: -32px;
68-
right: -32px;
6966
bottom: 0;
70-
background: var(--vscode-editor-background);
67+
left: 0;
68+
right: 0;
69+
height: 1px;
7170
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
72-
opacity: 0;
73-
transition: opacity 0.2s ease;
7471
pointer-events: none;
75-
z-index: -1;
76-
}
77-
78-
.title.stuck::before {
79-
opacity: 1;
8072
}
8173

8274
/* Hide subtitle when stuck */
83-
.title .subtitle {
84-
transition: opacity 0.2s ease, max-height 0.2s ease;
85-
max-height: 100px;
86-
overflow: hidden;
87-
}
88-
8975
.title.stuck .subtitle {
90-
opacity: 0;
91-
max-height: 0;
92-
pointer-events: none;
76+
display: none;
9377
}
9478

9579
/* Adjust title size when stuck */
96-
.title .overview-title h2 {
97-
transition: font-size 0.2s ease;
98-
}
99-
10080
.title.stuck .overview-title h2 {
10181
font-size: 18px;
10282
}
@@ -1259,9 +1239,8 @@ code {
12591239
border-bottom: 1px solid var(--vscode-contrastBorder);
12601240
}
12611241

1262-
.vscode-high-contrast .title.stuck::before {
1242+
.vscode-high-contrast .title.stuck::after {
12631243
box-shadow: none;
1264-
border: 1px solid var(--vscode-contrastBorder);
12651244
}
12661245

12671246
.vscode-high-contrast .diff .diffLine {

0 commit comments

Comments
 (0)