Skip to content
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

Panel edit icon button #298

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
styles: fix panel grid edit menu
  • Loading branch information
Germiniku committed Oct 19, 2023
commit e6a469681d1159f84d90684d8d163cf3a8394ede
7 changes: 4 additions & 3 deletions ui/src/views/dashboard/grid/PanelGrid/PanelGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,11 @@ export const PanelComponent = ({ dashboard, panel, variables, onRemovePanel, onH
`}
>

{data && <Box overflow="hidden">
{data && <Box>
<PanelHeader dashboardId={dashboard.id} panel={panel} data={panelData} queryError={queryError} onCopyPanel={onCopyPanel} onRemovePanel={onRemovePanel} onHidePanel={onHidePanel} />
<ErrorBoundary>
<Box
overflow="hidden"
// panel={panel}
height={panelInnerHeight}
marginLeft={panel.type == PanelTypeGraph ? -10 + panel.styles.marginLeft + 'px' : panel.styles.marginLeft + 'px'}
Expand Down Expand Up @@ -482,7 +483,7 @@ const PanelHeader = ({ dashboardId, queryError, panel, onCopyPanel, onRemovePane
</TitleDecoration>
</Box> : <Box width="100px">&nbsp;</Box>}
</Center>
<Box visibility={'hidden'} className="show-on-hover">
<Center visibility={'hidden'} className="show-on-hover">
<Menu placement="bottom" isLazy>
<MenuButton
background={useColorModeValue(customColors.bodyBg.light, customColors.bodyBg.dark)}
Expand Down Expand Up @@ -545,7 +546,7 @@ const PanelHeader = ({ dashboardId, queryError, panel, onCopyPanel, onRemovePane
</>}
</MenuList>
</Menu>
</Box>
</Center>
</Center>
{/* <Box display="none"><FaBook className="grid-drag-handle" /></Box> */}
</HStack>
Expand Down