Skip to content

Commit f0e2876

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

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

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>

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 {

web_src/css/review.css

-18
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
}
@@ -123,16 +115,6 @@
123115
padding: 10px 0;
124116
}
125117

126-
.comment-code-cloud .footer .ui.right.floated {
127-
padding-top: 6px;
128-
}
129-
130-
.comment-code-cloud .footer::after {
131-
clear: both;
132-
content: "";
133-
display: block;
134-
}
135-
136118
.diff-file-body .comment-form {
137119
margin: 0 0 0 3em;
138120
}

0 commit comments

Comments
 (0)