Skip to content

Commit 4301d54

Browse files
authored
Merge pull request #182 from gamosoft/features/fixes
Features/fixes
2 parents e2cb3ba + c16b020 commit 4301d54

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

frontend/index.html

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,8 @@
594594
background-color: var(--bg-primary) !important;
595595
color: var(--text-primary) !important;
596596
resize: none;
597-
overflow: auto;
597+
overflow-y: scroll; /* Always show scrollbar for consistent text width */
598+
overflow-x: auto;
598599
}
599600

600601
/* Syntax Highlighting Overlay */
@@ -619,16 +620,30 @@
619620
position: absolute;
620621
inset: 0;
621622
pointer-events: none;
622-
overflow: auto;
623+
overflow-y: scroll; /* Match textarea scrollbar space */
624+
overflow-x: auto; /* Match textarea for horizontal scroll sync */
623625
color: var(--text-primary);
624626
background-color: var(--bg-primary);
625627
z-index: 0;
626-
/* Hide scrollbars but allow programmatic scrolling */
627-
scrollbar-width: none; /* Firefox */
628-
-ms-overflow-style: none; /* IE/Edge */
629628
}
629+
/* Invisible scrollbar that takes EXACT same space as textarea */
630630
.syntax-overlay::-webkit-scrollbar {
631-
display: none; /* Chrome/Safari */
631+
width: 12px;
632+
height: 12px;
633+
background: transparent;
634+
}
635+
.syntax-overlay::-webkit-scrollbar-track {
636+
background: var(--bg-tertiary); /* MUST match textarea track */
637+
}
638+
.syntax-overlay::-webkit-scrollbar-thumb {
639+
background: transparent;
640+
border-radius: 6px;
641+
border: 2px solid transparent; /* MUST match textarea's 2px border */
642+
}
643+
/* Firefox - MUST match textarea's scrollbar-width: thin */
644+
.syntax-overlay {
645+
scrollbar-width: thin;
646+
scrollbar-color: transparent var(--bg-tertiary);
632647
}
633648

634649
/* Zen Mode Styles */

0 commit comments

Comments
 (0)