mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix nav border when bodyscrolling with sticky variables (#92087)
* fix nav border when bodyscrolling with sticky variables * better fix
This commit is contained in:
parent
950d5630a0
commit
5ce9324801
@ -161,6 +161,7 @@ const getStyles = (theme: GrafanaTheme2, searchBarHidden: boolean) => {
|
||||
background: theme.colors.background.primary,
|
||||
borderRight: `1px solid ${theme.colors.border.weak}`,
|
||||
display: 'none',
|
||||
width: MENU_WIDTH,
|
||||
|
||||
[theme.breakpoints.up('xl')]: {
|
||||
display: 'block',
|
||||
|
@ -104,12 +104,10 @@ const getStyles = (theme: GrafanaTheme2, searchBarHidden?: boolean) => {
|
||||
position: 'fixed',
|
||||
top: searchBarHidden ? 0 : TOP_BAR_LEVEL_HEIGHT,
|
||||
backgroundColor: theme.colors.background.primary,
|
||||
boxSizing: 'content-box',
|
||||
flex: '1 1 0',
|
||||
|
||||
[theme.breakpoints.up('md')]: {
|
||||
right: 'unset',
|
||||
borderRight: `1px solid ${theme.colors.border.weak}`,
|
||||
top: topPosition,
|
||||
},
|
||||
}),
|
||||
@ -151,6 +149,7 @@ const getAnimStyles = (theme: GrafanaTheme2, animationDuration: number) => {
|
||||
const overlayOpen = {
|
||||
width: '100%',
|
||||
[theme.breakpoints.up('md')]: {
|
||||
borderRight: `1px solid ${theme.colors.border.weak}`,
|
||||
boxShadow: theme.shadows.z3,
|
||||
width: MENU_WIDTH,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user