Skip to content

Commit 4bb968e

Browse files
committed
fix ui misalignment
1 parent 53571d6 commit 4bb968e

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
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/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)