Skip to content

Commit

Permalink
Merge pull request #16141 from seren5240/forum-mobile
Browse files Browse the repository at this point in the history
fix: use single column on mobile forum search
  • Loading branch information
ornicar authored Oct 5, 2024
2 parents f5daacd + fb078b3 commit 19fa296
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/forum/src/main/ui/PostUi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ final class PostUi(helpers: Helpers, bits: ForumBits):
br,
bits.authorLink(view.post)
)
tr(cls := "paginated")(
tr(cls := "paginated stack-row")(
if viewWithRead.canRead then
frag(
td(
Expand Down
13 changes: 13 additions & 0 deletions ui/common/css/component/_slist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,16 @@
}
}
}

@media (max-width: at-most($xx-small)) {
.stack-row {
display: flex;
flex-direction: column;
}

.stack-row td {
width: 100%;
padding-inline-start: var(---box-padding);
padding-inline-end: var(---box-padding);
}
}

0 comments on commit 19fa296

Please sign in to comment.