mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
Correct overflow for too long branch names
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user