Skip to content

Commit 8e751e8

Browse files
committed
feat: change color of folding line to blue
1 parent 98421f7 commit 8e751e8

5 files changed

Lines changed: 19 additions & 19 deletions

File tree

pnpm-lock.yaml

Lines changed: 2 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/split/SplitLine.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const getCodeMarker = (type: DiffType) => {
1717

1818
<template>
1919
<tr v-if="splitLine.fold">
20-
<td class="blob-num blob-num-empty empty-cell" colspan="1">
20+
<td class="blob-num blob-num-hunk" colspan="1">
2121
>
2222
</td>
23-
<td class="blob-code blob-code-empty empty-cell" colspan="3" align="left">
23+
<td class="blob-code blob-code-inner blob-code-hunk" colspan="3" align="left">
2424
2525
</td>
2626
</tr>

src/style.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
overflow-y: auto;
1515

16+
.file-header {
17+
background-color: var(--color-canvas-subtle);
18+
}
19+
1620
table {
1721
border-spacing: 0;
1822
}
@@ -95,6 +99,13 @@
9599
padding-right: 8px;
96100
content: attr(data-code-marker);
97101
}
102+
103+
.blob-num-hunk {
104+
background-color: var(--color-diff-blob-hunk-num-bg);
105+
}
106+
.blob-code-hunk {
107+
background-color: var(--color-accent-subtle);
108+
}
98109
}
99110

100111
.file-diff-split {

src/unified/UnifiedLine.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ const getCodeMarker = (type: DiffType) => {
1717

1818
<template>
1919
<tr v-if="line.fold">
20-
<td class="blob-num blob-num-empty empty-cell">
20+
<td class="blob-num blob-num-hunk">
2121
>
2222
</td>
23-
<td class="blob-num blob-num-empty empty-cell">
23+
<td class="blob-num blob-num-hunk">
2424
>
2525
</td>
26-
<td class="blob-code blob-code-empty empty-cell" align="left">
26+
<td class="blob-code blob-code-hunk" align="left">
2727
2828
</td>
2929
</tr>

vue3-playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
},
1111
"devDependencies": {
1212
"vite": "^4.0.4",
13-
"@vitejs/plugin-vue": "^2.3.4"
13+
"@vitejs/plugin-vue": "^4.0.0"
1414
}
1515
}

0 commit comments

Comments
 (0)