File tree Expand file tree Collapse file tree
src/vs/workbench/services/hover/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export class HoverWidget extends Widget {
141141 // Get horizontal alignment and position
142142 let targetLeft = this . _target . x !== undefined ? this . _target . x : Math . min ( ...targetBounds . map ( e => e . left ) ) ;
143143 if ( targetLeft + this . _hover . containerDomNode . clientWidth >= document . documentElement . clientWidth ) {
144- this . _x = document . documentElement . clientWidth ;
144+ this . _x = document . documentElement . clientWidth - 1 ;
145145 this . _hover . containerDomNode . classList . add ( 'right-aligned' ) ;
146146 } else {
147147 this . _x = targetLeft ;
Original file line number Diff line number Diff line change 1818 color : # 3794ff ;
1919}
2020
21+ .monaco-workbench .workbench-hover .right-aligned {
22+ /* The context view service wraps strangely when it's right up against the edge without this */
23+ left : 1px ;
24+ }
25+
2126.monaco-workbench .workbench-hover .right-aligned .hover-row .status-bar .actions {
2227 flex-direction : row-reverse;
2328}
You can’t perform that action at this time.
0 commit comments