responsive relation pages
This commit is contained in:
parent
d30ddd35b8
commit
17b6b6908d
|
@ -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, "-")
|
||||
|
|
10
ui/site/css/_relation.scss
Normal file
10
ui/site/css/_relation.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
@import '../../../common/css/plugin';
|
||||
@import '../../../common/css/component/slist';
|
||||
@import '../../../common/css/component/hover-text';
|
||||
@import '../relation';
|
||||
|
|
Loading…
Reference in a new issue