Adjust editor width dynamically
This commit is contained in:
@ -70,7 +70,7 @@ function ReactSplitPaneGlobalStyles() {
|
||||
|
||||
const StyledSplitPane = styled.div`
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
grid-template-columns: min(864px, 50%) auto;;
|
||||
height: 100%;
|
||||
|
||||
> div:nth-child(2)::before {
|
||||
|
@ -14,7 +14,7 @@ interface PreviewContentProps {
|
||||
}
|
||||
|
||||
const StyledPreviewContent = styled.div`
|
||||
width: calc(50% - 2px);
|
||||
width: calc(100% - min(864px, 50%));
|
||||
top: 66px;
|
||||
right: 0;
|
||||
position: absolute;
|
||||
|
Reference in New Issue
Block a user