Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 3 additions & 2 deletions labextension/src/components/DeployButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const StyledButtonGroup = styled(ButtonGroup)({
});

const MainButton = styled(Button)({
width: '100%'
width: '100%',
whiteSpace: 'nowrap'
});

const DropdownButton = styled(Button)({
Expand Down Expand Up @@ -102,7 +103,7 @@ export const SplitDeployButton: React.FunctionComponent<
<DeployButtonContainer>
<div className="deploy-button">
<Grid container>
<Grid size={12} sx={{ padding: '4px 10px' }}>
<Grid size={12} sx={{ padding: '4px 6px' }}>
<StyledButtonGroup
variant="contained"
color="primary"
Expand Down
18 changes: 18 additions & 0 deletions labextension/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,24 @@
text-transform: uppercase;
}

/* Keep dropdown (split) button fixed size when panel is resized */
.deploy-button .MuiButtonGroup-root {
display: flex;
width: 100%;
}

.deploy-button .MuiButtonGroup-grouped:first-child {
flex: 1 1 auto;
min-width: 0;
width: auto;
}

.deploy-button .MuiButtonGroup-grouped:last-child {
flex: 0 0 auto;
min-width: 40px;
width: 40px;
}

/* -----------------------------------------------------------------------------
| Inputs
|---------------------------------------------------------------------------- */
Expand Down