Skip to content

Commit 62539a8

Browse files
committed
Final bit of tweaks
1 parent 6bd1dc2 commit 62539a8

File tree

5 files changed

+30
-33
lines changed

5 files changed

+30
-33
lines changed

Pkmds.Web/Components/Layout/MainLayout.razor.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
z-index: 1000;
1111
}
1212

13-
#blazor-error-ui .dismiss {
14-
cursor: pointer;
15-
position: absolute;
16-
right: 0.75rem;
17-
top: 0.5rem;
18-
}
13+
#blazor-error-ui .dismiss {
14+
cursor: pointer;
15+
position: absolute;
16+
right: 0.75rem;
17+
top: 0.5rem;
18+
}

Pkmds.Web/Components/MarkingsContainer.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010

1111
.gen-3 {
1212
grid-template-columns: repeat(4, 1fr);
13-
grid-gap: 0px;
13+
grid-gap: 0;
1414
}

Pkmds.Web/wwwroot/css/app.css

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
body, html {
2-
padding-bottom: env(safe-area-inset-bottom, 16px);
3-
padding-top: env(safe-area-inset-top);
4-
padding-left: env(safe-area-inset-left, 8px);
5-
padding-right: env(safe-area-inset-right);
2+
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom, 16px) env(safe-area-inset-left, 8px);
63
box-sizing: border-box;
74
}
85

@@ -12,12 +9,12 @@ body, html {
129
box-sizing: border-box;
1310
}
1411

15-
pkm-sprite {
12+
.pkm-sprite {
1613
object-fit: contain;
1714
align-self: center;
1815
}
1916

20-
item-sprite {
17+
.item-sprite {
2118
object-fit: contain;
2219
align-self: center;
2320
}
@@ -74,19 +71,19 @@ item-sprite {
7471
margin: 20vh auto 1rem auto;
7572
}
7673

77-
.loading-progress circle {
78-
fill: none;
79-
stroke: #e0e0e0;
80-
stroke-width: 0.6rem;
81-
transform-origin: 50% 50%;
82-
transform: rotate(-90deg);
83-
}
74+
.loading-progress circle {
75+
fill: none;
76+
stroke: #e0e0e0;
77+
stroke-width: 0.6rem;
78+
transform-origin: 50% 50%;
79+
transform: rotate(-90deg);
80+
}
8481

85-
.loading-progress circle:last-child {
86-
stroke: #1b6ec2;
87-
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
88-
transition: stroke-dasharray 0.05s ease-in-out;
89-
}
82+
.loading-progress circle:last-child {
83+
stroke: #1b6ec2;
84+
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
85+
transition: stroke-dasharray 0.05s ease-in-out;
86+
}
9087

9188
.loading-progress-text {
9289
position: absolute;
@@ -95,6 +92,6 @@ item-sprite {
9592
inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
9693
}
9794

98-
.loading-progress-text:after {
99-
content: var(--blazor-load-percentage-text, "Loading");
100-
}
95+
.loading-progress-text:after {
96+
content: var(--blazor-load-percentage-text, "Loading");
97+
}

Pkmds.Web/wwwroot/js/fileSave.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
suggestedName: fileName,
55
types: [{
66
description: description,
7-
accept: { 'application/octet-stream': [extension] }
7+
accept: {'application/octet-stream': [extension]}
88
}]
99
};
1010

1111
const handle = await window.showSaveFilePicker(opts);
1212
const writable = await handle.createWritable();
13-
await writable.write(new Blob([new Uint8Array(byteArray)], { type: "application/octet-stream" }));
13+
await writable.write(new Blob([new Uint8Array(byteArray)], {type: "application/octet-stream"}));
1414
await writable.close();
1515
} catch (ex) {
1616
console.error(ex);

Pkmds.Web/wwwroot/service-worker.published.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const cacheNamePrefix = 'offline-cache-';
1717
const CACHE_VERSION = '%%CACHE_VERSION%%'
1818
const cacheName = `${cacheNamePrefix}${self.assetsManifest.version}${CACHE_VERSION}`;
1919

20-
const offlineAssetsInclude = [ /\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/ ];
21-
const offlineAssetsExclude = [ /^service-worker\.js$/ ];
20+
const offlineAssetsInclude = [/\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/];
21+
const offlineAssetsExclude = [/^service-worker\.js$/];
2222

2323
// Replace with your base path if you are hosting on a subfolder. Ensure there is a trailing '/'.
2424
const base = "/";
@@ -32,7 +32,7 @@ async function onInstall(event) {
3232
const assetsRequests = self.assetsManifest.assets
3333
.filter(asset => offlineAssetsInclude.some(pattern => pattern.test(asset.url)))
3434
.filter(asset => !offlineAssetsExclude.some(pattern => pattern.test(asset.url)))
35-
.map(asset => new Request(asset.url, { integrity: asset.hash, cache: 'no-cache' }));
35+
.map(asset => new Request(asset.url, {integrity: asset.hash, cache: 'no-cache'}));
3636
await caches.open(cacheName).then(cache => cache.addAll(assetsRequests));
3737
}
3838

0 commit comments

Comments
 (0)