Skip to content

Commit 40a5f04

Browse files
committed
fix: found mix-blend-mode chrome bug
1 parent fc86793 commit 40a5f04

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pages/v1/diff.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ export default {
123123
const hunkState = item[0]
124124
if (hunkState === -1 || hunkState === 0) {
125125
const className =
126-
hunkState === -1 ? 'isModified bg-red-300 dark:bg-yellow-900' : ''
126+
hunkState === -1
127+
? 'isModified bg-red-300 dark:bg-yellow-900 mix-blend-overlay'
128+
: ''
127129
return `<span class="break-all inline p-0 m-0 ${className}">${escapeHtml(
128130
item[1]
129131
)}</span>`
@@ -138,7 +140,9 @@ export default {
138140
const hunkState = item[0]
139141
if (hunkState === 1 || hunkState === 0) {
140142
const className =
141-
hunkState === 1 ? 'isModified bg-green-300 dark:bg-green-900' : ''
143+
hunkState === 1
144+
? 'isModified bg-green-300 dark:bg-green-900 mix-blend-overlay'
145+
: ''
142146
return `<span class="break-all inline p-0 m-0 ${className}">${escapeHtml(
143147
item[1]
144148
)}</span>`

0 commit comments

Comments
 (0)