mirror of
https://github.com/voideditor/void
synced 2026-05-23 01:18:25 +00:00
fix styles that were broken by someone
This commit is contained in:
parent
8e2e8c58c9
commit
bbe7575321
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue