@happy-nut/monacori 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/viewer.css +4 -0
- package/package.json +1 -1
package/dist/viewer.css
CHANGED
|
@@ -685,6 +685,10 @@ h1 { margin: 0; font-size: 18px; }
|
|
|
685
685
|
font-size: 14px; line-height: 1; padding: 0 3px; cursor: pointer; border-radius: 3px;
|
|
686
686
|
}
|
|
687
687
|
.source-tab-close:hover { background: var(--line); color: var(--text); }
|
|
688
|
+
/* Scrolloff: keep the caret / focused row near the vertical middle while navigating, so holding an arrow
|
|
689
|
+
key scrolls the view CONTINUOUSLY instead of leaving it still until the caret reaches the viewport edge
|
|
690
|
+
(the "stutter every ~viewport" the user reported). Applies to the source body, the diff, and the sidebar. */
|
|
691
|
+
.source-body, #diff2html-container, .sidebar-scroll { scroll-padding-block: 35vh; }
|
|
688
692
|
.source-body {
|
|
689
693
|
border: 1px solid var(--border);
|
|
690
694
|
overflow: auto;
|