Repository navigation
Show pull request info in "Current Branch" - #2871
Conversation
|
This is ready but it builds on top of #2823 so go review that first 🙏 |
|
@niik FYI that I'm using |
|
Does it look better with the same color as the “Current Branch” text? |
|
This is ready now that #2823 has landed |
niik
left a comment
There was a problem hiding this comment.
Hey, this is looking good @joshaber. A few color tweaks that are my bad and due to us using an old version of the color system in our sketch templates.
The paddings seems to be a little bit off though.
We should have uniform 5px margins around the whole thing.
| } | ||
|
|
||
| .toolbar-dropdown:not(.open) .pr-badge { | ||
| background: $gray-800; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| .ci-status-failure { | ||
| color: $red-600; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| @@ -0,0 +1,28 @@ | |||
| .toolbar-dropdown.open .pr-badge { | |||
| background: $gray-200; | |||
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| .ci-status-success { | ||
| color: $green-500; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| .ci-status-pending { | ||
| color: $orange-700; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Screenshots updated in the body 🐗 |
|
|
||
| align-items: center; | ||
|
|
||
| border: var(--base-border); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| border-width: 0; | ||
|
|
||
| margin-right: var(--spacing); | ||
| margin-left: var(--spacing); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| .number { | ||
| font-size: var(--font-size-sm); | ||
| line-height: 12px; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| @@ -128,23 +130,24 @@ export class BranchDropdown extends React.Component< | |||
|
|
|||
| const pullRequestsWithStatus: Array<IPullRequest> = [] | |||
| for (const pr of pullRequests) { | |||
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| this.setState({ pullRequests }) | ||
| } | ||
|
|
||
| private get currentPullRequest(): IPullRequest | null { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Otherwise we'll have too much right margin when there is no status
|
🇻🇦 |
| } | ||
|
|
||
| .pr-badge { | ||
| --height: 18px; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.


Fixes #2820
Builds on top of #2823.