Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Oct 27, 2024
1 parent b812cf9 commit 40c1a26
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
33 changes: 18 additions & 15 deletions packages/dockview-core/src/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -293,20 +293,7 @@
}

.dv-horizontal > .dv-sash-container > .dv-sash {
&:not(.disabled) {
&::after {
content: '';
height: 40px;
width: 4px;
border-radius: 2px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: var(--dv-separator-handle-background-color);
position: absolute;
}

&:hover {
&:not(.disabled) {
&::after {
content: '';
height: 40px;
Expand All @@ -321,9 +308,25 @@

&:hover {
&::after {
content: '';
height: 40px;
width: 4px;
border-radius: 2px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: var(
--dv-separator-handle-hover-background-color
--dv-separator-handle-background-color
);
position: absolute;
}

&:hover {
&::after {
background-color: var(
--dv-separator-handle-hover-background-color
);
}
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions packages/dockview/src/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import ReactDOM from 'react-dom';
import {
DockviewDisposable,
IFrameworkPart,
IDockviewDisposable,
DockviewIDisposable,
Parameters,
} from 'dockview-core';

export interface ReactPortalStore {
addPortal: (portal: React.ReactPortal) => IDockviewDisposable;
addPortal: (portal: React.ReactPortal) => DockviewIDisposable;
}

interface IPanelWrapperProps {
Expand Down Expand Up @@ -75,7 +75,7 @@ export class ReactPart<P extends object, C extends object = {}>
private componentInstance?: IPanelWrapperRef;
private ref?: {
portal: React.ReactPortal;
disposable: IDockviewDisposable;
disposable: DockviewIDisposable;
};
private disposed = false;

Expand Down Expand Up @@ -163,7 +163,7 @@ export class ReactPart<P extends object, C extends object = {}>

type PortalLifecycleHook = () => [
React.ReactPortal[],
(portal: React.ReactPortal) => IDockviewDisposable
(portal: React.ReactPortal) => DockviewIDisposable
];

/**
Expand Down

0 comments on commit 40c1a26

Please sign in to comment.