fix styles that were broken by someone

This commit is contained in:
Mathew Pareles 2025-04-07 18:36:51 -07:00
parent 8e2e8c58c9
commit bbe7575321
2 changed files with 4 additions and 2 deletions

View file

@ -20,7 +20,7 @@ export const VoidSelectionHelperMain = (props: VoidSelectionHelperProps) => {
const isDark = useIsDark()
return <div
className={`@@void-scope ${isDark ? 'dark' : ''} pointer-events-none`}
className={`@@void-scope ${isDark ? 'dark' : ''}`}
>
<VoidSelectionHelper {...props} />
</div>
@ -143,7 +143,7 @@ const VoidSelectionHelper = ({ rerenderKey }: VoidSelectionHelperProps) => {
return <div className='
pointer-events-auto select-none
ml-4 z-[1000]
z-[1000]
rounded-sm shadow-md flex flex-nowrap text-nowrap
border border-void-border-3 bg-void-bg-2
transition-all duration-200

View file

@ -55,6 +55,8 @@ export class SelectionHelperContribution extends Disposable implements IEditorCo
// Set styles for container
root.style.position = 'absolute';
root.style.display = 'none'; // Start hidden
root.style.pointerEvents = 'none';
root.style.marginLeft = '16px';
// Initialize React component
this._instantiationService.invokeFunction(accessor => {