refactor(epg): hairline dividers, en-dash time, single-line description

Separation: replace 4px gap with hairline dividers via ::before, hidden
around the active and current-program rows so they read as a continuous
emphasized block. Title line-height 1.4 → 1.3 + letter-spacing -0.01em
to match channel-name. Time uses en-dash, 0.78rem (parity with summary
bar), token-driven --app-muted-color. Description clamped to one line —
full text remains one click away via the info icon.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: b0389ce441a1
This commit is contained in:
4grayandClaude Opus 4.7 committed 2026-04-29 00:52:29 +02:00
1 parent db0e2b658f
commit 7841b3b4e8
3 files changed
+41 -13

No files matched your search

@@ -1,7 +1,5 @@
<span class="time"
>{{ (item.startTimestamp ? item.startTimestamp * 1000 : item.start) | date: 'HH:mm' }}
-
{{ (item.stopTimestamp ? item.stopTimestamp * 1000 : item.stop) | date: 'HH:mm' }}</span
>{{ (item.startTimestamp ? item.startTimestamp * 1000 : item.start) | date: 'HH:mm' }}–{{ (item.stopTimestamp ? item.stopTimestamp * 1000 : item.stop) | date: 'HH:mm' }}</span
>
@if (isLive) {
<span class="live badge" [matTooltip]="'EPG.LIVE_NOW' | translate"
@@ -7,13 +7,13 @@
}
.time {
font-size: 0.76rem;
font-size: 0.78rem;
line-height: 1;
font-weight: 600;
letter-spacing: 0.02em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
opacity: 0.76;
color: var(--app-muted-color);
}
.badge {
@@ -49,16 +49,16 @@
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 8px 8px 12px;
padding: 4px 8px 12px;
display: flex;
flex-direction: column;
gap: 4px;
gap: 0;
}
.program-item {
display: flex;
flex-direction: column;
gap: 6px;
gap: 5px;
padding: 10px 12px;
border: 1px solid transparent;
border-radius: 12px;
@@ -70,12 +70,32 @@
color 0.15s ease;
cursor: default;
& + .program-item {
position: relative;
&::before {
content: '';
position: absolute;
top: 0;
left: 12px;
right: 12px;
height: 1px;
background: var(--app-separator);
opacity: 0.5;
}
}
&.current-program {
background: color-mix(
in srgb,
var(--app-selection-color) 6%,
transparent
);
&::before,
& + .program-item::before {
display: none;
}
}
&.clickable {
@@ -83,6 +103,11 @@
&:hover {
background: color-mix(in srgb, currentColor 6%, transparent);
&::before,
& + .program-item::before {
display: none;
}
}
&.current-program:hover {
@@ -108,6 +133,11 @@
.program-title {
color: var(--app-selection-color);
}
&::before,
& + .program-item::before {
display: none;
}
}
}
@@ -119,8 +149,9 @@
.program-title {
font-size: 0.94rem;
line-height: 1.4;
line-height: 1.3;
font-weight: 600;
letter-spacing: -0.01em;
text-wrap: balance;
overflow: hidden;
text-overflow: ellipsis;
@@ -132,12 +163,11 @@
.epg-item__description {
font-size: 0.82rem;
line-height: 1.4;
color: var(--app-muted-color);
color: var(--app-body-color);
text-wrap: pretty;
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
white-space: nowrap;
}
.program-progress {