@@ -44,27 +44,9 @@ class RecoveryApp extends App {
44
44
grid-template-columns : 10em 10em ;
45
45
}
46
46
47
- button {
48
- width : 10em ;
49
- }
50
-
51
- # return {
52
- grid-column : span 2 ;
53
- width : 21em ;
54
- }
55
-
56
47
.recovery-app-content p {
57
48
margin : 0 ;
58
49
}
59
-
60
- /* .recovery-app-content button {
61
- background: #202124;
62
- color: white;
63
- border: none;
64
- padding: 0.5rem 1rem;
65
- border-radius: 4px;
66
- cursor: pointer;
67
- } */
68
50
` ;
69
51
70
52
page = async ( ) => (
@@ -137,33 +119,31 @@ class RecoveryApp extends App {
137
119
Anura Shell
138
120
</ button >
139
121
{ /* Invalidate Cache Button */ }
140
- < div >
141
- { $if (
142
- anura . settings . get ( "use-sw-cache" ) ,
143
- < button
144
- style = "background: #1B5E20;"
145
- class = "matter-button-contained"
146
- title = "Clear the service worker cache. This requires an internet connection on your next boot."
147
- on :click = { ( ) => {
148
- anura . settings . set ( "milestone" , "__INVALID" ) ;
149
- anura . dialog . alert (
150
- "The cache has been invalidated. When you reload the page, the cache will be reinstalled. This requires an internet connection." ,
151
- "Cache invalidated" ,
152
- ) ;
153
- } }
154
- >
155
- Invalidate Cache
156
- </ button > ,
157
- < button
158
- style = "background: #1B5E20; cursor: not-allowed;"
159
- class = "matter-button-contained"
160
- title = "The cache is disabled, so you cannot invalidate it."
161
- disabled
162
- >
163
- Invalidate Cache
164
- </ button > ,
165
- ) }
166
- </ div >
122
+ { $if (
123
+ anura . settings . get ( "use-sw-cache" ) ,
124
+ < button
125
+ style = "background: #1B5E20;"
126
+ class = "matter-button-contained"
127
+ title = "Clear the service worker cache. This requires an internet connection on your next boot."
128
+ on :click = { ( ) => {
129
+ anura . settings . set ( "milestone" , "__INVALID" ) ;
130
+ anura . dialog . alert (
131
+ "The cache has been invalidated. When you reload the page, the cache will be reinstalled. This requires an internet connection." ,
132
+ "Cache invalidated" ,
133
+ ) ;
134
+ } }
135
+ >
136
+ Invalidate Cache
137
+ </ button > ,
138
+ < button
139
+ style = "background: #1B5E20; cursor: not-allowed;"
140
+ class = "matter-button-contained"
141
+ title = "The cache is disabled, so you cannot invalidate it."
142
+ disabled
143
+ >
144
+ Invalidate Cache
145
+ </ button > ,
146
+ ) }
167
147
168
148
< button
169
149
style = "background: #1B5E20"
@@ -177,7 +157,10 @@ class RecoveryApp extends App {
177
157
</ button >
178
158
179
159
< button
180
- style = "background: #1B5E20"
160
+ style = { {
161
+ background : "#1B5E20" ,
162
+ gridColumn : "span 2" ,
163
+ } }
181
164
class = "matter-button-contained"
182
165
title = "Return to normal mode"
183
166
id = "return"
0 commit comments