fix(header): make .active class toggle correct@@ -1,5 +1,5 @@
{
- "_generatedAtUnix": 1778493305245,
+ "_generatedAtUnix": 1778495079942,
"_hashAlgorithm": "sha1",
"_version": 2,
"assets": {
@@ -122,23 +122,23 @@
"pathSource": "./app/views/organization/OrganizationDetailsView.tsx"
},
"RepositoryBrowserView": {
- "hash": "81e6af41d08eeaa67205562808e6242aa9f80190",
+ "hash": "570126c6a07d3a866ad7554527d4b3de55879607",
"pathSource": "./app/views/repository/RepositoryBrowserView.tsx"
},
"RepositoryCommitsLogView": {
- "hash": "ff424e3c6b651f9ec41cade96ade44e5911961c5",
+ "hash": "c2883381fbee0b93e165abd38a412d0e802ae65d",
"pathSource": "./app/views/repository/RepositoryCommitsLogView.tsx"
},
"RepositoryCompareView": {
- "hash": "6a9dfc6918a092e2d5477c654da192ccc4923b11",
+ "hash": "bf9ab8c3ab4f1d0722ac968b811cc3bf6537ed9f",
"pathSource": "./app/views/repository/RepositoryCompareView.tsx"
},
"RepositoryCreateView": {
- "hash": "9f0f39d67a7f8d4d5acc229eca4328e427e62747",
+ "hash": "d38e91def64064530cad123022ea856100bf79ae",
"pathSource": "./app/views/repository/RepositoryCreateView.tsx"
},
"RepositoryDetailsView": {
- "hash": "1a1dae11fde756abeac809db2f7fb7417de1620f",
+ "hash": "6e36acdb479b2b69bddc8b35ff7ba65f0b9b812c",
"pathSource": "./app/views/repository/RepositoryDetailsView.tsx"
},
"RepositoryExploreView": {
@@ -146,23 +146,23 @@
"pathSource": "./app/views/repository/RepositoryExploreView.tsx"
},
"RepositoryForkView": {
- "hash": "b8067358faf3af2ff271b14d1c710ea3b146e333",
+ "hash": "bf9c35ad6b78e50ba79fd4218b3e0754a901995e",
"pathSource": "./app/views/repository/RepositoryForkView.tsx"
},
"RepositoryShowObjectView": {
- "hash": "17463b3826771e745e6bf2234edace3482d41c68",
+ "hash": "50aab67470271b2c3cb4155cd34282a8419323ae",
"pathSource": "./app/views/repository/RepositoryShowObjectView.tsx"
},
"RepositoryPullRequestCreateView": {
- "hash": "0120b3883fd89467285f44cb02a11fdebd314363",
+ "hash": "b57e81c31c03e8334069c5df9fb1def8ebda1cf9",
"pathSource": "./app/views/repositoryPullRequests/RepositoryPullRequestCreateView.tsx"
},
"RepositoryPullRequestDetailsView": {
- "hash": "8d09c65ae26d7865c472300bf5a102470516b0f2",
+ "hash": "c2971a7253f86686c3f0b74570274dcb5be75af1",
"pathSource": "./app/views/repositoryPullRequests/RepositoryPullRequestDetailsView.tsx"
},
"RepositoryPullRequestsView": {
- "hash": "3a3141f2902e33a4fe531d86153a14947c727dfd",
+ "hash": "5799a8750c280ee3f852bf60c3b93125dfbc7783",
"pathSource": "./app/views/repositoryPullRequests/RepositoryPullRequestsView.tsx"
},
"SettingsKeyAddView": {
@@ -90,11 +90,12 @@ export const PageHeader: VFC<PageHeaderProps & WithThemeSchemeProp> = ({
repoSlug: "gitfoss",
})}
className={
- commonProps.path ===
- buildRouteLink(AppRoute.REPOSITORY_DETAILS, {
- orgSlug: "ethicdevs",
- repoSlug: "gitfoss",
- })
+ commonProps.path!.startsWith(
+ buildRouteLink(AppRoute.REPOSITORY_DETAILS, {
+ orgSlug: "ethicdevs",
+ repoSlug: "gitfoss",
+ }),
+ )
? "active"
: undefined
}
@@ -236,6 +237,7 @@ const StyledPageHeaderNav = styled.nav<WithThemeSchemeProp>`
white-space: nowrap;
height: 40px;
+ min-width: 120px;
padding: 0 16px;
border-radius: 20px;