Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/repo/diff/conversation.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{{template "repo/diff/comments" dict "root" $ "comments" .comments}}
</ui>
</div>
<div class="df je ac fw mt-3">
<div class="df je js-small ac fw mt-3">
<div class="ui buttons mr-2">
<button class="ui icon tiny basic button previous-conversation">
{{svg "octicon-arrow-up" 12 "icon"}} {{$.locale.Tr "repo.issues.previous"}}
Expand Down
3 changes: 3 additions & 0 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,10 @@
.comment-content {
margin-left: 36px;
}
}

.code-comment,
.comment {
img.avatar {
width: 28px;
height: 28px;
Expand Down
22 changes: 16 additions & 6 deletions web_src/less/_review.less
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,22 @@
width: 100%;
}
}

.ui.buttons {
width: 100%;
margin: 0 !important;

.button {
flex: 1;
}
}
}

.comments .comment {
margin: 0;
padding: 0;

@media @mediaSm {
padding: 0;
display: flex;

.comment-header-right.actions .ui.basic.label {
display: none;
Expand All @@ -90,6 +99,10 @@
float: none;
margin: 0 .5rem 0 0;
flex-shrink: 0;

~ .content {
margin-left: 1em;
}
}

img.avatar {
Expand Down Expand Up @@ -166,10 +179,7 @@
.button {
width: 100%;
margin: 0 !important;

&:not(:last-child) {
margin-bottom: .75rem !important;
}
margin-bottom: .75rem !important;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions web_src/less/helpers.less
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,5 @@
@media @mediaSm {
.db-small { display: block !important; }
.w-100-small { width: 100% !important; }
.js-small { justify-content: flex-start !important; }
}