@@ -577,8 +577,7 @@ export class GhosttyTerminalSurface {
577577 options : GhosttyTerminalSurfaceOptions ,
578578 ) : Promise < GhosttyTerminalSurface > {
579579 const canvas = document . createElement ( "canvas" ) ;
580- canvas . className = "t3-ghostty-canvas" ;
581- canvas . style . cssText = "display:block;width:100%;height:100%;" ;
580+ canvas . className = "block size-full cursor-text" ;
582581 canvas . setAttribute ( "aria-hidden" , "true" ) ;
583582
584583 const input = document . createElement ( "textarea" ) ;
@@ -591,14 +590,16 @@ export class GhosttyTerminalSurface {
591590 "position:absolute;left:4px;top:4px;width:1px;height:1px;opacity:0;padding:0;border:0;resize:none;pointer-events:none;" ;
592591
593592 const scrollbar = document . createElement ( "div" ) ;
594- scrollbar . className = "t3-ghostty-scrollbar" ;
593+ scrollbar . className =
594+ "group absolute top-1 right-px bottom-1 z-1 w-[var(--app-scrollbar-width)] cursor-default touch-none" ;
595595 scrollbar . setAttribute ( "role" , "scrollbar" ) ;
596596 scrollbar . setAttribute ( "aria-label" , "Terminal scrollback" ) ;
597597 scrollbar . setAttribute ( "aria-orientation" , "vertical" ) ;
598598 scrollbar . tabIndex = 0 ;
599599 scrollbar . hidden = true ;
600600 const scrollbarThumb = document . createElement ( "div" ) ;
601- scrollbarThumb . className = "t3-ghostty-scrollbar-thumb" ;
601+ scrollbarThumb . className =
602+ "absolute inset-x-px top-0 rounded-[3px] bg-[var(--app-scrollbar-thumb)] transition-[background-color] duration-[120ms] ease-[ease-out] group-hover:bg-[var(--app-scrollbar-thumb-hover)] group-focus-visible:bg-[var(--app-scrollbar-thumb-hover)]" ;
602603 scrollbar . append ( scrollbarThumb ) ;
603604 mount . replaceChildren ( canvas , input , scrollbar ) ;
604605
0 commit comments