Fixed CSS for theme highlighting and status bar dropup height

This commit is contained in:
n1474335 2023-01-13 13:12:01 +00:00
parent 1b3d55f051
commit f2bd838596
4 changed files with 6 additions and 6 deletions

View File

@ -110,7 +110,7 @@
--hl2: #675351; --hl2: #675351;
--hl3: #ffb6b6; --hl3: #ffb6b6;
--hl4: #fcf8e3; --hl4: #fcf8e3;
--hl5: #8de768; --hl5: #38811b;
/* Scrollbar */ /* Scrollbar */

View File

@ -125,9 +125,9 @@
/* Highlighter colours */ /* Highlighter colours */
--hl1: var(--base01); --hl1: var(--base01);
--hl2: var(--sol-blue); --hl2: var(--sol-blue);
--hl3: var(--sol-magenta); --hl3: var(--sol-green);
--hl4: var(--sol-yellow); --hl4: var(--sol-yellow);
--hl5: var(--sol-green); --hl5: var(--sol-magenta);
/* Scrollbar */ /* Scrollbar */

View File

@ -127,9 +127,9 @@
/* Highlighter colours */ /* Highlighter colours */
--hl1: var(--base1); --hl1: var(--base1);
--hl2: var(--sol-blue); --hl2: var(--sol-blue);
--hl3: var(--sol-magenta); --hl3: var(--sol-green);
--hl4: var(--sol-yellow); --hl4: var(--sol-yellow);
--hl5: var(--sol-green); --hl5: var(--sol-magenta);
/* Scrollbar */ /* Scrollbar */

View File

@ -265,7 +265,7 @@ class StatusBarPanel {
* @param {EditorView} view * @param {EditorView} view
*/ */
updateSizing(view) { updateSizing(view) {
const viewHeight = view.contentDOM.clientHeight; const viewHeight = view.contentDOM.parentNode.clientHeight;
this.dom.querySelectorAll(".cm-status-bar-select-scroll").forEach( this.dom.querySelectorAll(".cm-status-bar-select-scroll").forEach(
el => { el => {
el.style.maxHeight = (viewHeight - 50) + "px"; el.style.maxHeight = (viewHeight - 50) + "px";