Skip to content

Commit

Permalink
fix ui misalignment
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Dec 2, 2024
1 parent 53571d6 commit c251dc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions templates/repo/diff/comment_form.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
<input type="hidden" name="diff_start_cid">
<input type="hidden" name="diff_end_cid">
<input type="hidden" name="diff_base_cid">

<div class="field">
{{template "shared/combomarkdowneditor" (dict
"CustomInit" true
"MarkdownPreviewInRepo" $.root.Repository "MarkdownPreviewMode" "comment"
"TextareaName" "content" "TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder")
"DropzoneParentContainer" "form"
"DisableAutosize" "true"
)}}

</div>
{{if $.root.IsAttachmentEnabled}}
<div class="field">
{{template "repo/upload" $.root}}
</div>
{{end}}

<div class="field footer tw-mx-2">
<div class="field footer">
<div class="tw-text-right">
{{if $.reply}}
<button class="ui submit primary tiny button btn-reply" type="submit">{{ctx.Locale.Tr "repo.diff.comment.reply"}}</button>
Expand Down
2 changes: 1 addition & 1 deletion web_src/css/repo.css
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ td .commit-summary {
}

.repository.view.issue .comment-list .code-comment .comment-content {
margin-left: 36px;
margin-left: 24px;
}

.repository.view.issue .comment-list .comment > .avatar {
Expand Down
8 changes: 0 additions & 8 deletions web_src/css/review.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,11 @@
cursor: pointer;
}

.comment-code-cloud .ui.active.tab {
padding: 0.5em;
}

.comment-code-cloud .ui.active.tab.markup {
padding: 1em;
min-height: 168px;
}

.comment-code-cloud .ui.tabular.menu {
margin: 0.5em;
}

.comment-code-cloud .editor-statusbar {
display: none;
}
Expand Down

0 comments on commit c251dc9

Please sign in to comment.