Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions webviews/activityBarView/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ textarea {
padding-bottom: 16px;
}

.ready-for-review-container .select-control {
.ready-for-review-container {
Comment thread
Thomas1664 marked this conversation as resolved.
display: flex;
flex-direction: column;
gap: 12px;
padding-bottom: 16px;
}

.ready-for-review-container p,
.ready-for-review-heading,
.status-section p {
line-height: 1.5em;
margin: 0;
Expand All @@ -54,14 +57,6 @@ textarea {
width: 100%;
}

.ready-for-review-button {
width: 100%;
}

.ready-for-review-container {
padding-bottom: 16px;
}

.select-control,
#merge-on-github,
form,
Expand Down
16 changes: 9 additions & 7 deletions webviews/components/merge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,16 @@ export const ReadyForReview = ({ isSimple }: { isSimple: boolean }) => {

return (
<div className="ready-for-review-container">
<div className="select-control">
<button className="ready-for-review-button" disabled={isBusy} onClick={markReadyForReview}>
Comment thread
Thomas1664 marked this conversation as resolved.
Ready for review
</button>
<div className='ready-for-review-text-wrapper'>
<div className="ready-for-review-icon">{isSimple ? null : alertIcon}</div>
<div>
<div className="ready-for-review-heading">This pull request is still a work in progress.</div>
<div className="ready-for-review-meta">Draft pull requests cannot be merged.</div>
</div>
</div>
<div className='button-container'>
Comment thread
Thomas1664 marked this conversation as resolved.
<button disabled={isBusy} onClick={markReadyForReview}>Ready for review</button>
</div>
{isSimple ? '' : <div className="ready-for-review-icon">{alertIcon}</div>}
<p className="ready-for-review-heading">This pull request is still a work in progress.</p>
<p className="ready-for-review-meta">Draft pull requests cannot be merged.</p>
</div>
);
};
Expand Down
14 changes: 8 additions & 6 deletions webviews/editorWebview/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,11 @@ body .comment-container .review-comment-header {
}

.status-item,
.form-actions {
.form-actions,
.ready-for-review-text-wrapper {
display: flex;
gap: 8px;
align-items: center;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fixes icon on first row of status checks (see 'before' screenshot) is misaligned.

}

.status-item-detail-text {
Expand All @@ -235,14 +237,14 @@ body .comment-container .review-comment-header {
background-color: var(--vscode-editorWidget-background);
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
}

.ready-for-review-button {
float: right;
display: flex;
justify-content: space-between;
align-items: center;
}

.ready-for-review-icon {
float: left;
width: 16px;
height: 16px;
}

.ready-for-review-heading {
Expand Down