Fix buttons and z-index (#1438)

* Fix buttons

* Remove useless code
This commit is contained in:
Charles Bochet
2023-09-04 17:52:03 +02:00
committed by GitHub
parent 2eac5df05b
commit d04c661ffd
10 changed files with 25 additions and 28 deletions

View File

@ -43,7 +43,6 @@ const StyledTable = styled.table`
border-right-color: transparent;
}
:last-of-type {
min-width: fit-content;
width: 100%;
}
}
@ -63,10 +62,6 @@ const StyledTable = styled.table`
border-left-color: transparent;
border-right-color: transparent;
}
:last-of-type {
min-width: fit-content;
width: 100%;
}
}
`;

View File

@ -198,8 +198,10 @@ export function EntityTableHeader() {
<StyledAddIconButtonWrapper>
<IconButton
size="medium"
variant="tertiary"
icon={<IconPlus />}
onClick={toggleColumnMenu}
position="middle"
/>
{isColumnMenuOpen && (
<StyledEntityTableColumnMenu

View File

@ -36,10 +36,6 @@ const StyledContainer = styled.div`
position: relative;
`;
const StyledDropdownMenuContainer = styled(DropdownMenuContainer)`
z-index: 1;
`;
type TableUpdateViewButtonGroupProps = {
onViewSubmit?: () => void;
HotkeyScope: string;
@ -139,7 +135,7 @@ export const TableUpdateViewButtonGroup = ({
return (
<StyledContainer>
<ButtonGroup size="small">
<ButtonGroup size="small" accent="blue">
<Button
title="Update view"
disabled={
@ -156,14 +152,14 @@ export const TableUpdateViewButtonGroup = ({
</ButtonGroup>
{isDropdownOpen && (
<StyledDropdownMenuContainer onClose={handleDropdownClose}>
<DropdownMenuContainer onClose={handleDropdownClose}>
<StyledDropdownMenuItemsContainer>
<DropdownMenuItem onClick={handleCreateViewButtonClick}>
<IconPlus size={theme.icon.size.md} />
Create view
</DropdownMenuItem>
</StyledDropdownMenuItemsContainer>
</StyledDropdownMenuContainer>
</DropdownMenuContainer>
)}
</StyledContainer>
);