-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PanelEdit: Fixes resize pane border and spacing issues #56190
Conversation
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/35922 |
resizerV: cx( | ||
resizer, | ||
css` | ||
cursor: col-resize; | ||
width: ${paneSpacing}; | ||
|
||
&::before { | ||
border-right: 1px solid transparent; | ||
height: 100%; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
} | ||
|
||
&::after { | ||
height: 200px; | ||
width: 4px; | ||
} | ||
` | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding this back and removing SplitView and figuring out how to make SplitPaneWrapper more generic might be one path forward? or creating a standalone VerticalSplitView for explore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ox's thought was that a vertical split view was the core component, and dashboard edit which has vertical and horizontal would be in features/dashboard. Then both explore and dashboards use the core vertical split view.
@@ -83,7 +83,6 @@ export const SplitView = ({ uiState: { rightPaneSize }, children, minSize = 200, | |||
minSize={minSize} | |||
maxSize={width - minSize} | |||
resizerClassName={useStyles2(getResizerStyles(hasSplit))} | |||
paneStyle={{ overflow: 'auto', display: 'flex', flexDirection: 'column', overflowY: 'scroll' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #56213 to work on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gelicia please help in this PR, needs to be fixed asap so we can backport this in 9.2 stable to we don't ship 9.2 with these bugs in panel edit and explore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@torkelo The team discussed this and decided the best bet is to revert the split resize PRs so we can work on this outside of the release. We will be doing that shortly.
#54420 broke 3 things in panel edit (2 fixed so far in this PR) it also duplicated the resizer styling and the callbacks so that it's now something we have to maintain in two places (SplitView and SplitViewWrapper), that does not feel ideal.
Below you see the border (should not be there), and the left side space is not equal to right side (should be 16px spacing between panes but it's 24)