mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-04-27 15:07:43 +00:00
fixes
This commit is contained in:
parent
21d74c525d
commit
7bc61f7efb
3 changed files with 42 additions and 34 deletions
|
|
@ -109,6 +109,8 @@ const BC_STORE_KEYS = new Set([
|
||||||
"legacy",
|
"legacy",
|
||||||
"legacyliquor",
|
"legacyliquor",
|
||||||
"tudor",
|
"tudor",
|
||||||
|
"vessel",
|
||||||
|
"vintage",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
function groupAllowsStore(group, storeKey) {
|
function groupAllowsStore(group, storeKey) {
|
||||||
|
|
|
||||||
|
|
@ -284,16 +284,15 @@ export async function renderStats($app) {
|
||||||
const pref = loadPrefs();
|
const pref = loadPrefs();
|
||||||
|
|
||||||
$app.innerHTML = `
|
$app.innerHTML = `
|
||||||
<div class="container">
|
|
||||||
<div class="header">
|
|
||||||
<div class="headerRow1">
|
<div class="headerRow1">
|
||||||
<div class="headerLeft">
|
<div class="statsHeaderLeft">
|
||||||
<div class="headerButtons" style="margin-top:10px;">
|
|
||||||
<button id="back" class="btn">← Back</button>
|
<button id="back" class="btn">← Back</button>
|
||||||
</div>
|
|
||||||
|
<div class="statsTitleStack">
|
||||||
<h1 class="h1">Store Price Index</h1>
|
<h1 class="h1">Store Price Index</h1>
|
||||||
<div class="small" id="statsStatus">Loading…</div>
|
<div class="small" id="statsStatus">Loading…</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="headerRight">
|
<div class="headerRight">
|
||||||
<div style="display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end;">
|
<div style="display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end;">
|
||||||
|
|
@ -317,14 +316,6 @@ export async function renderStats($app) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card">
|
|
||||||
<div style="height:420px;">
|
|
||||||
<canvas id="statsChart" aria-label="Statistics chart" role="img"></canvas>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -428,6 +428,21 @@ a.skuLink:hover { text-decoration: underline; cursor: pointer; }
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Stats page only */
|
||||||
|
.statsHeaderLeft {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statsTitleStack {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 2px;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* --- Store page: two-column results (new; isolated to store page) --- */
|
/* --- Store page: two-column results (new; isolated to store page) --- */
|
||||||
.storeGrid {
|
.storeGrid {
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue