Skip to content

Commit ab4f788

Browse files
InspiredGuyZakhar Kozlov
and
Zakhar Kozlov
authored
fix: editor shadow appears under the selected line background when horizontal scroll is active (#5020)
Co-authored-by: Zakhar Kozlov <zakharkv@amazon.com>
1 parent 1e0b5a9 commit ab4f788

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ npm run test
152152

153153
You can also run the tests in your browser by serving:
154154

155-
http://localhost:8888/lib/ace/test/tests.html
155+
http://localhost:8888/src/test/tests.html
156156

157157
This makes debugging failing tests way more easier.
158158

src/css/editor.css.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,15 @@ styles.join("\\n")
9393
right: 0;
9494
}
9595
96-
.ace_scroller.ace_scroll-left {
96+
.ace_scroller.ace_scroll-left:after {
97+
content: "";
98+
position: absolute;
99+
top: 0;
100+
right: 0;
101+
bottom: 0;
102+
left: 0;
97103
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
104+
pointer-events: none;
98105
}
99106
100107
.ace_gutter-cell {

0 commit comments

Comments
 (0)