Merge branch 'develop' into bugfix/branchselector_overflow

This commit is contained in:
eheimbuch
2020-09-21 12:20:11 +02:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Missing BranchCreatedEvent for mercurial ([#1334](https://github.com/scm-manager/scm-manager/pull/1334))
- Branch not found right after creation ([#1334](https://github.com/scm-manager/scm-manager/pull/1334))
- Overflow for too long branch names ([#1339](https://github.com/scm-manager/scm-manager/pull/1339))
- Set default branch in branch selector if nothing is selected ([#1338](https://github.com/scm-manager/scm-manager/pull/1338))
## [2.5.0] - 2020-09-10
### Added

View File

@@ -102,7 +102,7 @@ const ContributorDetails = styled.div`
const ContributorToggleLine = styled.p`
cursor: pointer;
/** maring-bottom is inherit from content p **/
/** margin-bottom is inherit from content p **/
margin-bottom: 0.5rem !important;
`;

View File

@@ -70,12 +70,13 @@ class ChangesetsRoot extends React.Component<Props> {
}
const url = urls.stripEndingSlash(match.url);
const defaultBranch = branches?.find(b => b.defaultBranch === true);
return (
<>
<CodeActionBar
branches={branches}
selectedBranch={!this.isBranchAvailable() ? selectedBranch : undefined}
selectedBranch={!this.isBranchAvailable() ? selectedBranch : defaultBranch?.name}
onSelectBranch={this.onSelectBranch}
switchViewLink={this.evaluateSwitchViewLink()}
/>