Comments (1)
In lieu of a first party solution to this, you can achieve it with a bit of custom CSS.
.container {
--splitter-hit-area: 7px;
--splitter-visible-area: 1px;
--splitter-hit-offset: calc(
-1 * ((var(--splitter-hit-area) - var(--splitter-visible-area)) / 2)
);
}
.container .splitter-layout > .layout-splitter {
width: var(--splitter-visible-area);
background: blue;
z-index: 2;
position: relative;
}
.container .splitter-layout > .layout-splitter:before {
content: "";
display: block;
width: var(--splitter-hit-area);
position: absolute;
left: var(--splitter-hit-offset);
top: 0;
height: 100%;
}
.container .splitter-layout > .layout-splitter:hover,
.container .splitter-layout > .layout-splitter:hover:before {
background: red;
}
.container .splitter-layout.layout-changing > .layout-splitter,
.container .splitter-layout.layout-changing > .layout-splitter:before {
background: green;
}
.container .splitter-layout.splitter-layout-vertical > .layout-splitter {
height: var(--splitter-visible-area);
}
.container
.splitter-layout.splitter-layout-vertical
> .layout-splitter:before {
width: 100%;
height: var(--splitter-hit-area);
top: var(--splitter-hit-offset);
left: 0;
}
from react-splitter-layout.
Related Issues (20)
- Is it possible to not have scroll on layout-pane?
- secondaryInitialSize does not respect primaryMinSize
- Typescript example using the latest version
- CSS to wrap <pre> text in secondary pane
- Text inside separator
- Browser compatability - IE 11
- Server side rendering issues
- Any way to change size of secondary window dynamically? HOT 4
- Delete this. Issue resolved. HOT 1
- Allow resizing areas from code, without unmounting.
- The width set when resizing doesn't respect min-width that may be applied via CSS
- Set max size or restrict dragging on second layout
- Support React 17
- How do you make nested panes?
- Repo maintained ?
- Make this compatible with react 18.2.0?
- Mousedown events with the right mouse button should be ignored
- Dragging slightly to the left can cause jumps to the right
- Set the width of the splitter programatically HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-splitter-layout.