File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2
2
display : grid;
3
3
grid-template-columns : 1fr 180px 65px ;
4
4
gap : 1px 0 ;
5
- background-color : # 000 ;
5
+ background-color : # bbb ;
6
6
width : 500px ;
7
7
}
8
8
23
23
# content > # no-data-placeholder {
24
24
grid-area : 3 / 1 / 3 / -1 ;
25
25
text-align : center;
26
- display : none;
27
26
font-size : 15px ;
28
27
font-weight : bold;
29
28
}
Original file line number Diff line number Diff line change 17
17
< div > </ div >
18
18
< div > </ div >
19
19
</ div >
20
- < div id ="no-data-placeholder "> no data</ div >
20
+ < div id ="no-data-placeholder "> no data to display </ div >
21
21
< div id ="token-table ">
22
22
</ div >
23
23
</ div >
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ function loadTokenTable(filterUrl) {
38
38
tokenTable . appendChild ( copyButtonDiv ) ;
39
39
}
40
40
41
+ toggleSearchContainer ( filterUrl , tokensPresent ) ;
41
42
toggleNoDataPlaceholder ( tokensPresent ) ;
42
43
} ) ;
43
44
@@ -91,6 +92,11 @@ function loadTokenTable(filterUrl) {
91
92
return buttonDiv ;
92
93
}
93
94
95
+ function toggleSearchContainer ( filterUrl , tokensPresent ) {
96
+ const searchContainer = document . getElementById ( "search-container" ) ;
97
+ searchContainer . style . display = ! filterUrl && ! tokensPresent ? "none" : "contents" ;
98
+ }
99
+
94
100
function toggleNoDataPlaceholder ( tokensPresent ) {
95
101
const noDataPlaceholder = document . getElementById ( "no-data-placeholder" ) ;
96
102
noDataPlaceholder . style . display = tokensPresent ? "none" : "block" ;
You can’t perform that action at this time.
0 commit comments