Skip to content

Commit 2edf7b6

Browse files
authored
Merge pull request #1788 from codidact/0valt/1786/comments-responsiveness
Wrap comment actions to a new line on narrow screens
2 parents cba2805 + 1ab0034 commit 2edf7b6

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

app/assets/stylesheets/comments.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@
2222
}
2323

2424
.comment .comment-meta {
25-
font-size: 0.9em;
26-
color: #666;
2725
background-color: rgba(0, 0, 0, 0.05);
28-
padding: 0.5rem 0.75rem;
29-
margin-bottom: 0.5rem;
26+
color: #666;
3027
display: flex;
28+
flex-wrap: wrap;
29+
font-size: 0.9em;
30+
gap: 0.5em;
31+
justify-content: space-between;
32+
margin-bottom: 0.5rem;
33+
padding: 0.5rem 0.75rem;
3134

3235
.comment--reference {
3336
position: relative;
@@ -42,12 +45,14 @@
4245
}
4346

4447
.comment--links {
45-
flex-grow: 1;
4648
display: flex;
47-
justify-content: right;
4849

4950
a {
5051
margin: 0 0.25rem;
52+
53+
&:first-child {
54+
margin-left: 0;
55+
}
5156
}
5257
}
5358
}

0 commit comments

Comments
 (0)