responsive relation pages

This commit is contained in:
Thibault Duplessis 2019-05-01 08:34:42 +07:00
parent d30ddd35b8
commit 17b6b6908d
3 changed files with 13 additions and 1 deletions

View file

@ -36,7 +36,8 @@ trait UserHelper { self: I18nHelper with StringHelper with NumberHelper =>
def showPerfRating(rating: Int, name: String, nb: Int, provisional: Boolean, icon: Char)(implicit ctx: Context): Frag =
span(
title := s"$name rating over ${nb.localize} games",
dataIcon := icon
dataIcon := icon,
cls := "text"
)(
if (nb > 0) frag(rating, provisional option "?")
else frag(nbsp, nbsp, nbsp, "-")

View file

@ -0,0 +1,10 @@
table td {
max-width: 50vw;
overflow: hidden;
text-overflow: ellipsis;
@include breakpoint($mq-not-x-small) {
&:last-child {
display: none;
}
}
}

View file

@ -1,3 +1,4 @@
@import '../../../common/css/plugin';
@import '../../../common/css/component/slist';
@import '../../../common/css/component/hover-text';
@import '../relation';