mirror of
https://github.com/mathuo/dockview
synced 2025-02-09 01:45:45 +00:00
chore: fix
This commit is contained in:
parent
b812cf9117
commit
40c1a26ead
@ -293,20 +293,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dv-horizontal > .dv-sash-container > .dv-sash {
|
.dv-horizontal > .dv-sash-container > .dv-sash {
|
||||||
&:not(.disabled) {
|
&: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 {
|
|
||||||
&::after {
|
&::after {
|
||||||
content: '';
|
content: '';
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@ -321,9 +308,25 @@
|
|||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
&::after {
|
&::after {
|
||||||
|
content: '';
|
||||||
|
height: 40px;
|
||||||
|
width: 4px;
|
||||||
|
border-radius: 2px;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
background-color: var(
|
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
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,12 +3,12 @@ import ReactDOM from 'react-dom';
|
|||||||
import {
|
import {
|
||||||
DockviewDisposable,
|
DockviewDisposable,
|
||||||
IFrameworkPart,
|
IFrameworkPart,
|
||||||
IDockviewDisposable,
|
DockviewIDisposable,
|
||||||
Parameters,
|
Parameters,
|
||||||
} from 'dockview-core';
|
} from 'dockview-core';
|
||||||
|
|
||||||
export interface ReactPortalStore {
|
export interface ReactPortalStore {
|
||||||
addPortal: (portal: React.ReactPortal) => IDockviewDisposable;
|
addPortal: (portal: React.ReactPortal) => DockviewIDisposable;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IPanelWrapperProps {
|
interface IPanelWrapperProps {
|
||||||
@ -75,7 +75,7 @@ export class ReactPart<P extends object, C extends object = {}>
|
|||||||
private componentInstance?: IPanelWrapperRef;
|
private componentInstance?: IPanelWrapperRef;
|
||||||
private ref?: {
|
private ref?: {
|
||||||
portal: React.ReactPortal;
|
portal: React.ReactPortal;
|
||||||
disposable: IDockviewDisposable;
|
disposable: DockviewIDisposable;
|
||||||
};
|
};
|
||||||
private disposed = false;
|
private disposed = false;
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ export class ReactPart<P extends object, C extends object = {}>
|
|||||||
|
|
||||||
type PortalLifecycleHook = () => [
|
type PortalLifecycleHook = () => [
|
||||||
React.ReactPortal[],
|
React.ReactPortal[],
|
||||||
(portal: React.ReactPortal) => IDockviewDisposable
|
(portal: React.ReactPortal) => DockviewIDisposable
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user