Add option to mark whitespace characters in diffs

Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
This commit is contained in:
Viktor Egorov
2024-04-26 15:15:52 +02:00
parent 3773d77889
commit cdbf86b8c9
17 changed files with 6215 additions and 395 deletions

View File

@@ -1078,3 +1078,20 @@ form .field:not(.is-grouped) {
content: "\0002f";
}
}
.space_char::before {
font-size: 0.75rem;
content: '·';
color: var(--diff-whitespace-color);
background: transparent;
position: absolute;
}
.tabulator_char::before {
font-size: 0.75rem;
content: '';
color: var(--diff-whitespace-color);
background: transparent;
position: absolute;
text-align: center;
}

View File

@@ -229,6 +229,7 @@ $danger-25: scale-color($danger, $lightness: -75%);
--diff-code-delete-edit-background-color: #{desaturate(#000, 20%)};
--diff-code-selected-background-color: #{desaturate(#fffce0, 20%)};
--diff-omit-gutter-line-color: #cb2a1d;
--diff-whitespace-color: #{desaturate(#fffce0, 20%)};
}
.menu-list {

View File

@@ -127,6 +127,7 @@ $tooltip-color: $scheme-main;
--diff-code-delete-edit-background-color: #000;
--diff-code-selected-background-color: #fffce0;
--diff-omit-gutter-line-color: #cb2a1d;
--diff-whitespace-color: #fffce0;
}
.button {

View File

@@ -79,6 +79,8 @@ $popover-border-color: $grey-lightest;
--sh-selected-color: #{$warning-25};
--sh-highlight-background: #f5f5f5;
--sh-highlight-accent: #99d8f3;
--diff-whitespace-color: #363636;
}
.button {