Correct overflow for too long branch names

This commit is contained in:
Florian Scholdei
2020-09-21 10:37:03 +02:00
parent dcc2c45dad
commit 8123fbb164
2 changed files with 12 additions and 5 deletions

View File

@@ -41,6 +41,13 @@ const ActionBar = styled.div`
margin-bottom: 1em;
`;
const FlexShrinkLevel = styled(Level)`
.level-left {
flex-shrink: 1;
margin-right: 0.75rem;
}
`;
type Props = {
selectedBranch?: string;
branches: Branch[];
@@ -54,7 +61,7 @@ const CodeActionBar: FC<Props> = ({ selectedBranch, branches, onSelectBranch, sw
return (
<ActionBar>
<Level
<FlexShrinkLevel
left={
branches?.length > 0 && (
<BranchSelector