5.0.1
Fix flipped table alignments
This commit is contained in:
@@ -1746,6 +1746,16 @@
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Event tags are grouped rather than left as loose siblings so that when
|
||||||
|
the rotated view stacks the time cell into a column, they stay on one
|
||||||
|
horizontal line instead of forming a vertical stack of their own. The
|
||||||
|
gap matches .utci-time-inner so the inline layout is unchanged. */
|
||||||
|
.utci-time-tags {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 800px) {
|
@media (max-width: 800px) {
|
||||||
.utci-time {
|
.utci-time {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
@@ -2605,6 +2615,13 @@
|
|||||||
min-width: 76px;
|
min-width: 76px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Top-aligned so every scope sits on the same line. The header row is as
|
||||||
|
tall as its tallest cell — an hour carrying event tags — and centring
|
||||||
|
would push the emptier hours down out of step with it. */
|
||||||
|
.utci-table-rotated thead th.rot-hour-th {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
/* Stacked, not inline: rotated, every hour is its own COLUMN, so sitting
|
/* Stacked, not inline: rotated, every hour is its own COLUMN, so sitting
|
||||||
the scope beside the time would set the width of all of them. Stacking
|
the scope beside the time would set the width of all of them. Stacking
|
||||||
puts the scope over the label and lets the columns stay narrow. The
|
puts the scope over the label and lets the columns stay narrow. The
|
||||||
|
|||||||
@@ -1405,6 +1405,8 @@ export function UTCIForecast() {
|
|||||||
<span class="utci-time-inner">
|
<span class="utci-time-inner">
|
||||||
<${SkyScope} elev=${r.elev} dt=${r.dt} glob=${r.glob} size=${38} />
|
<${SkyScope} elev=${r.elev} dt=${r.dt} glob=${r.glob} size=${38} />
|
||||||
<span>${localHHMM}</span>
|
<span>${localHHMM}</span>
|
||||||
|
${rowEvents.length > 0 && html`
|
||||||
|
<span class="utci-time-tags">
|
||||||
${rowEvents.map((ev, idx) => html`
|
${rowEvents.map((ev, idx) => html`
|
||||||
<span key=${ev.id} class="event-cell-tag"
|
<span key=${ev.id} class="event-cell-tag"
|
||||||
onClick=${(e) => handleEventTagClick(rowEvents, idx, e)}
|
onClick=${(e) => handleEventTagClick(rowEvents, idx, e)}
|
||||||
@@ -1413,6 +1415,7 @@ export function UTCIForecast() {
|
|||||||
role="button" tabIndex="0" aria-label=${ev.title}
|
role="button" tabIndex="0" aria-label=${ev.title}
|
||||||
>${ev.emoji}</span>
|
>${ev.emoji}</span>
|
||||||
`)}
|
`)}
|
||||||
|
</span>`}
|
||||||
</span>`;
|
</span>`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user