Skip to content

Commit

Permalink
fix: Temporarily keep same line wrapping to FireFox only
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitcheljager committed Aug 7, 2024
1 parent 820d3f4 commit 3ccc248
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions app/javascript/scss/editor/_codemirror-6.scss
Original file line number Diff line number Diff line change
Expand Up @@ -273,26 +273,24 @@
}

.indented-wrapped-line {
--text-indent-multiplier: -1.5;
margin-left: var(--indented);
text-indent: calc(var(--text-indent-multiplier) * var(--indented));

@supports (-moz-appearance: none) {
--text-indent-multiplier: -1;
}
margin-left: var(--indented);
text-indent: calc(var(--text-indent-multiplier) * var(--indented));

&.cm-activeLine {
box-shadow: calc((-1 * var(--indented)) + 4px) 0 0 rgba($white, 0.025)
}
&.cm-activeLine {
box-shadow: calc((-1 * var(--indented)) + 4px) 0 0 rgba($white, 0.025)
}

&.cm-indent-markers {
&::before {
left: calc(var(--indented) * -1 + 2px);
&.cm-indent-markers {
&::before {
left: calc(var(--indented) * -1 + 2px);
}
}
}

button,
.button {
text-indent: 0;
button,
.button {
text-indent: 0;
}
}
}

0 comments on commit 3ccc248

Please sign in to comment.