Skip to content

Commit c251dc9

Browse files
committed
fix ui misalignment
1 parent 53571d6 commit c251dc9

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

Diff for: templates/repo/diff/comment_form.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
<input type="hidden" name="diff_start_cid">
1010
<input type="hidden" name="diff_end_cid">
1111
<input type="hidden" name="diff_base_cid">
12-
12+
<div class="field">
1313
{{template "shared/combomarkdowneditor" (dict
1414
"CustomInit" true
1515
"MarkdownPreviewInRepo" $.root.Repository "MarkdownPreviewMode" "comment"
1616
"TextareaName" "content" "TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder")
1717
"DropzoneParentContainer" "form"
1818
"DisableAutosize" "true"
1919
)}}
20-
20+
</div>
2121
{{if $.root.IsAttachmentEnabled}}
2222
<div class="field">
2323
{{template "repo/upload" $.root}}
2424
</div>
2525
{{end}}
2626

27-
<div class="field footer tw-mx-2">
27+
<div class="field footer">
2828
<div class="tw-text-right">
2929
{{if $.reply}}
3030
<button class="ui submit primary tiny button btn-reply" type="submit">{{ctx.Locale.Tr "repo.diff.comment.reply"}}</button>

Diff for: web_src/css/repo.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ td .commit-summary {
10051005
}
10061006

10071007
.repository.view.issue .comment-list .code-comment .comment-content {
1008-
margin-left: 36px;
1008+
margin-left: 24px;
10091009
}
10101010

10111011
.repository.view.issue .comment-list .comment > .avatar {

Diff for: web_src/css/review.css

-8
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,11 @@
102102
cursor: pointer;
103103
}
104104

105-
.comment-code-cloud .ui.active.tab {
106-
padding: 0.5em;
107-
}
108-
109105
.comment-code-cloud .ui.active.tab.markup {
110106
padding: 1em;
111107
min-height: 168px;
112108
}
113109

114-
.comment-code-cloud .ui.tabular.menu {
115-
margin: 0.5em;
116-
}
117-
118110
.comment-code-cloud .editor-statusbar {
119111
display: none;
120112
}

0 commit comments

Comments
 (0)