radio: fix quick log insert (timestamp param), 'ch 16' falls back to the marine channel, ISS list fits half-width cards
Deploy production / deploy (push) Successful in 1m26s
Deploy production / deploy (push) Successful in 1m26s
This commit is contained in:
1 parent
03574a95a7
commit
95a8b76562
2 files changed
+57
-35
No files matched your search
@@ -65,35 +65,37 @@
|
||||
>
|
||||
</div>
|
||||
{/if}
|
||||
{#if days.length}
|
||||
{#each days as d (d.key)}
|
||||
<h3 class="day">{d.label}</h3>
|
||||
<ul class="passes">
|
||||
{#each d.passes as p (p.startAt)}
|
||||
{@const live = new Date(p.startAt).getTime() <= now}
|
||||
<li class={{ low: p.maxEl < ISS_MIN_EL, live }}>
|
||||
<span class="times">
|
||||
<b>{fmtTime(p.startAt)}</b><span class="arrow">→</span>{fmtTime(p.maxAt)}<span
|
||||
class="arrow">→</span
|
||||
>{fmtTime(p.endAt)}
|
||||
</span>
|
||||
<span class="el" title="max elevation">
|
||||
<span class="elbar"><i style:width="{Math.min(100, (p.maxEl / 90) * 100)}%"></i></span
|
||||
>{Math.round(p.maxEl)}°
|
||||
</span>
|
||||
<span class="dir">{compass(p.startAz)} → {compass(p.maxAz)} → {compass(p.endAz)}</span>
|
||||
<span class="dur">{mins(p)} min</span>
|
||||
<span class="vis"
|
||||
>{#if p.sunlit}<Eye size={14} aria-label="visible to the eye" />{/if}</span
|
||||
>
|
||||
<span class="rel">{live ? 'overhead now' : until(p.startAt, now)}</span>
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{/each}
|
||||
{:else}
|
||||
<p class="empty">No passes computed yet (the daily refresh fills this).</p>
|
||||
{/if}
|
||||
<div class="iss">
|
||||
{#if days.length}
|
||||
{#each days as d (d.key)}
|
||||
<h3 class="day">{d.label}</h3>
|
||||
<ul class="passes">
|
||||
{#each d.passes as p (p.startAt)}
|
||||
{@const live = new Date(p.startAt).getTime() <= now}
|
||||
<li class={{ low: p.maxEl < ISS_MIN_EL, live }}>
|
||||
<span class="times">
|
||||
<b>{fmtTime(p.startAt)}</b><span class="arrow">→</span>{fmtTime(p.maxAt)}<span
|
||||
class="arrow">→</span
|
||||
>{fmtTime(p.endAt)}
|
||||
</span>
|
||||
<span class="el" title="max elevation">
|
||||
<span class="elbar"><i style:width="{Math.min(100, (p.maxEl / 90) * 100)}%"></i></span
|
||||
>{Math.round(p.maxEl)}°
|
||||
</span>
|
||||
<span class="dir">{compass(p.startAz)} → {compass(p.maxAz)} → {compass(p.endAz)}</span>
|
||||
<span class="dur">{mins(p)} min</span>
|
||||
<span class="vis"
|
||||
>{#if p.sunlit}<Eye size={14} aria-label="visible to the eye" />{/if}</span
|
||||
>
|
||||
<span class="rel">{live ? 'overhead now' : until(p.startAt, now)}</span>
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{/each}
|
||||
{:else}
|
||||
<p class="empty">No passes computed yet (the daily refresh fills this).</p>
|
||||
{/if}
|
||||
</div>
|
||||
{#if !compact && tle}
|
||||
<p class="meta foot">
|
||||
{tle.name} TLE from Celestrak, epoch {tle.epoch ? fmtAgo(tle.epoch) : '?'}, fetched {tle.fetchedAt
|
||||
@@ -177,16 +179,31 @@
|
||||
.foot {
|
||||
margin-top: 0.8rem;
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.iss {
|
||||
container-type: inline-size;
|
||||
}
|
||||
@container (max-width: 40rem) {
|
||||
li {
|
||||
grid-template-columns: 1fr auto auto;
|
||||
grid-template-columns: minmax(0, 1fr) auto 1.2rem;
|
||||
row-gap: 0.1rem;
|
||||
}
|
||||
.times {
|
||||
grid-area: 1 / 1;
|
||||
}
|
||||
.el {
|
||||
grid-area: 1 / 2;
|
||||
}
|
||||
.vis {
|
||||
grid-area: 1 / 3;
|
||||
}
|
||||
.dir {
|
||||
grid-column: 1;
|
||||
grid-area: 2 / 1;
|
||||
}
|
||||
.dur {
|
||||
display: none;
|
||||
}
|
||||
.rel {
|
||||
grid-area: 2 / 2 / 3 / 4;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user