Skip to content

Commit f09e4b6

Browse files
committed
Removes graph icon customization from codicons
1 parent add2052 commit f09e4b6

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

src/webviews/apps/plus/graph/GraphWrapper.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ export function GraphWrapper({
11581158
} satisfies BranchGitCommandArgs,
11591159
})}
11601160
>
1161-
<span className="codicon codicon-git-branch-create action-button__icon"></span>
1161+
<span className="codicon codicon-custom-git-branch-create action-button__icon"></span>
11621162
</a>
11631163
<span slot="content">
11641164
Create a branch from <i>{branchName}</i> and switch
@@ -1171,13 +1171,8 @@ export function GraphWrapper({
11711171
arrow={false}
11721172
distance={0}
11731173
>
1174-
<GlTooltip placement="top" distance={7}>
1175-
<button
1176-
type="button"
1177-
className="action-button"
1178-
slot="trigger"
1179-
aria-label="Minimap Options"
1180-
>
1174+
<GlTooltip placement="top" distance={7} slot="anchor">
1175+
<button type="button" className="action-button" aria-label="Minimap Options">
11811176
<span
11821177
className="codicon codicon-chevron-down action-button__more"
11831178
aria-hidden="true"

src/webviews/apps/plus/graph/graph.scss

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,20 @@ button:not([disabled]),
304304
.codicon[class*='codicon-graph-line'] {
305305
transform: translateY(1px);
306306
}
307+
.codicon-custom-git-branch-create {
308+
&:before {
309+
content: '\ea68';
310+
}
311+
&:after {
312+
content: '\ea60';
313+
position: absolute;
314+
right: 0;
315+
bottom: 0;
316+
font-size: 0.6em;
317+
line-height: normal;
318+
transform: translate(-50%, 0%);
319+
}
320+
}
307321

308322
&__pill {
309323
.is-ahead & {
@@ -979,7 +993,7 @@ gl-feature-gate gl-feature-badge {
979993
&__header {
980994
flex: none;
981995
z-index: 101;
982-
width: --webkit-fill-available;
996+
width: fit-content;
983997
position: relative;
984998
}
985999

src/webviews/apps/shared/codicons.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,6 @@
159159
.codicon-git-branch-create:before {
160160
content: '\ea68';
161161
}
162-
.codicon-git-branch-create:after {
163-
content: '\ea60';
164-
position: absolute;
165-
right: 0;
166-
bottom: 0px;
167-
font-size: 0.6em;
168-
line-height: normal;
169-
transform: translate(-50%, 0%);
170-
}
171162
.codicon-git-branch-delete:before {
172163
content: '\ea68';
173164
}

0 commit comments

Comments
 (0)