Skip to content

Commit b80be09

Browse files
committed
recovery app css cleanup
1 parent 4d1bc67 commit b80be09

File tree

2 files changed

+30
-46
lines changed

2 files changed

+30
-46
lines changed

src/coreapps/RecoveryApp.tsx

Lines changed: 29 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,9 @@ class RecoveryApp extends App {
4444
grid-template-columns: 10em 10em;
4545
}
4646
47-
button {
48-
width: 10em;
49-
}
50-
51-
#return {
52-
grid-column: span 2;
53-
width: 21em;
54-
}
55-
5647
.recovery-app-content p {
5748
margin: 0;
5849
}
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-
} */
6850
`;
6951

7052
page = async () => (
@@ -137,33 +119,31 @@ class RecoveryApp extends App {
137119
Anura Shell
138120
</button>
139121
{/* 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+
)}
167147

168148
<button
169149
style="background: #1B5E20"
@@ -177,7 +157,10 @@ class RecoveryApp extends App {
177157
</button>
178158

179159
<button
180-
style="background: #1B5E20"
160+
style={{
161+
background: "#1B5E20",
162+
gridColumn: "span 2",
163+
}}
181164
class="matter-button-contained"
182165
title="Return to normal mode"
183166
id="return"

x86_image_wizard/whisper

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit ca9695d6406a437d6a2ee77168ffef37468d39bb

0 commit comments

Comments
 (0)