-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Comments on pull files #2583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Comments on pull files #2583
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
.ui.blue.button.code-comment { | ||
font-size: 14px; | ||
height: 100%; | ||
left: 0; | ||
padding: 0; | ||
padding-top: 2px; | ||
position: absolute; | ||
top: 0; | ||
width: 100%; | ||
display: none; | ||
} | ||
|
||
.code-comment-section .single-comment .content { | ||
padding: 10px 5px; | ||
} | ||
|
||
.repository .diff-file-box .code-diff .code-comment-section td { | ||
padding: 15px 12px; | ||
padding-top: 5px; | ||
border: 1px solid #dddddd; | ||
} | ||
|
||
.repository .diff-file-box .file-body.file-code .lines-num-old { | ||
position: relative; | ||
} | ||
|
||
.repository .diff-file-box .code-diff td .comment-code-cloud:before { | ||
content: " "; | ||
width: 0; | ||
height: 0; | ||
border-left: 13px solid transparent; | ||
border-right: 13px solid transparent; | ||
border-bottom: 13px solid #f1f1f1; | ||
left: 49px; | ||
position: absolute; | ||
top: -13px; | ||
} | ||
|
||
.repository .diff-file-box .code-diff td .comment-code-cloud { | ||
width: 75%; | ||
padding: 14px 20px; | ||
margin: 0 auto; | ||
position: relative; | ||
border: 1px solid #f1f1f1; | ||
margin-top: 13px; | ||
} | ||
|
||
.repository .diff-file-box .code-diff td .comment-code-cloud .attached.tab { | ||
border: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.repository .diff-file-box .code-diff td .comment-code-cloud .right.menu .item { | ||
padding: 0.85714286em 0.442857em; | ||
} | ||
|
||
.repository .diff-file-box .code-diff .comment-code-cloud textarea { | ||
border: 0px; | ||
} | ||
|
||
.comment-code-cloud .ui.attached.tabular.menu { | ||
background: #f7f7f7; | ||
border: 1px solid #d4d4d5; | ||
padding-top: 5px; | ||
padding-left: 5px; | ||
} | ||
|
||
.comment-code-cloud .ui.top.attached .item { | ||
cursor: pointer; | ||
} | ||
|
||
.comment-code-cloud .markdown-info { | ||
display: inline-block; | ||
margin: 5px 0; | ||
font-size: 12px; | ||
} | ||
|
||
.comment-code-cloud .preview-msg { | ||
min-height: 168px; | ||
} | ||
|
||
.comment-code-cloud .footer { | ||
padding-top: 12px; | ||
border-top: 1px solid #f1f1f1; | ||
margin-top: 10px; | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using +/- we could go with gitea's style and add a type attribute with possible values
addition
,deletion
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't want to add an extra column, so I define the line, if it's greater than zero, it should the previous code line before the pull's commits. If it's less than zero, it should the line on this pull's commits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If everyone's happy with this I won't obstruct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, if you use
+/-
, it should be-
for previous line and+
for new line.