File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed
Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change 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 */
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 */
You can’t perform that action at this time.
0 commit comments