Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
comments UI improved
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntss committed Jun 3, 2016
1 parent b4a18ee commit 868abc6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/comments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

.comment-row {
padding: .5em 0;
padding: .5em 1em;
display: flex;
&:hover {
background: $comment-row-hover;
Expand Down
5 changes: 5 additions & 0 deletions app/assets/stylesheets/panels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@
#profile .panel {
max-width: 700px;
}

.panel-no-side-padding {
padding-left: 0px;
padding-right: 0px;
}
2 changes: 1 addition & 1 deletion app/views/comments/_comment.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.row
.col-xs-8
p
strong.text-primary
strong
= comment.author.username
span.text-muted.space-xs-sides
= activity_time_tag comment.updated_at
Expand Down
2 changes: 1 addition & 1 deletion app/views/repositories/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
i.fa.fa-comment
| Write a comment

#comments.panel-body
#comments.panel-body.panel-no-side-padding
.container-full
- if @repository_comments.empty?
' Nobody has left a comment yet.
Expand Down

0 comments on commit 868abc6

Please sign in to comment.