File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
src/main/resources/templates Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 3
3
< style >
4
4
nav {
5
5
display : grid;
6
- grid-template-columns : repeat (auto-fit, minmax (80 px , 1fr ));
6
+ grid-template-columns : repeat (auto-fit, minmax (90 px , 1fr ));
7
7
justify-items : center;
8
8
align-items : center;
9
9
20
20
display : flex;
21
21
flex-direction : column;
22
22
align-items : center;
23
- justify-content : space-around;
24
23
gap : 4px ;
25
- height : 70px ;
24
+ height : 90px ;
25
+ width : 100% ;
26
26
27
27
cursor : pointer;
28
28
29
- aspect-ratio : 1 ;
30
29
border-radius : 8px ;
31
30
padding : 6px ;
32
31
33
32
font-family : Roboto, sans-serif;
34
33
font-size : 0.875rem ;
35
34
36
35
overflow : hidden;
37
- white-space : nowrap;
38
- text-overflow : ellipsis;
36
+ }
37
+
38
+ .tile span {
39
+ white-space : normal;
40
+ text-align : center;
39
41
}
40
42
41
43
.tile : hover {
44
46
45
47
img {
46
48
object-fit : contain;
49
+ flex-shrink : 0 ;
50
+ height : 50px ;
47
51
}
48
52
</ style >
49
53
63
67
>
64
68
< div class ="tile ">
65
69
< img width ="50 " height ="50 " th:src ="${app.value.imageUrl} " th:alt ="${app.value.displayName} " />
66
- < span
67
- th:text ="${#strings.abbreviate(app.value.displayName,15)} "
68
- > </ span >
70
+ < span th:text ="${#strings.abbreviate(app.value.displayName, 25)} "> </ span >
69
71
</ div >
70
72
</ a >
71
73
</ nav >
You can’t perform that action at this time.
0 commit comments