mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
feat(live-news): improve Manage Channels UX — toggle from grid + show all channels (#745)
Make the Available Channels grid the primary way to toggle channels on/off: - Add 10 default channels (Bloomberg, SkyNews, DW, etc.) to the grid - Add "All" region tab showing every channel (with i18n for 19 locales) - Grid cards are now toggleable: click ✓ to remove, click + to add - Hover on added cards shows ✕ with red tint to signal removal - Top pills get × close button on hover for quick removal - Click-to-edit gated to custom channels only (builtins use grid toggle) - Fix France24 default to use French channel (@FRANCE24) UX polish: - Tighten header/content whitespace (padding, gaps, margins reduced) - Align settings gear icon to top of pill row (flex-start) - Add ESC dismiss to all modals (channels, story, signal, findings) - SignalModal ESC listener properly added on show, removed on hide
This commit is contained in:
@@ -1434,7 +1434,7 @@ body.panel-resize-active iframe {
|
||||
.live-news-toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
padding: 6px 8px;
|
||||
background: var(--darken-heavy);
|
||||
@@ -1520,6 +1520,7 @@ body.panel-resize-active iframe {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
align-self: flex-start;
|
||||
}
|
||||
.live-news-settings-btn:hover {
|
||||
border-color: var(--text-dim);
|
||||
@@ -1591,6 +1592,21 @@ body.panel-resize-active iframe {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.live-news-manage-row-remove-x {
|
||||
display: none;
|
||||
font-size: 10px;
|
||||
color: var(--text-faint);
|
||||
cursor: pointer;
|
||||
padding: 0 2px;
|
||||
line-height: 1;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
.live-news-manage-row:hover .live-news-manage-row-remove-x {
|
||||
display: inline;
|
||||
}
|
||||
.live-news-manage-row-remove-x:hover {
|
||||
color: var(--red);
|
||||
}
|
||||
.live-news-manage-edit {
|
||||
padding: 4px 8px;
|
||||
font-size: 10px;
|
||||
@@ -1716,7 +1732,7 @@ body.panel-resize-active iframe {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 12px 16px;
|
||||
padding: 8px 14px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--darken-heavy);
|
||||
flex-shrink: 0;
|
||||
@@ -1729,10 +1745,10 @@ body.panel-resize-active iframe {
|
||||
border-radius: 4px;
|
||||
}
|
||||
.live-channels-window-toolbar {
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: 4px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
.live-news-manage-restore-defaults {
|
||||
@@ -1750,18 +1766,18 @@ body.panel-resize-active iframe {
|
||||
border-color: var(--text-dim);
|
||||
}
|
||||
.live-channels-window-title {
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.live-channels-window-content {
|
||||
padding: 16px;
|
||||
padding: 10px 14px;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
gap: 8px;
|
||||
}
|
||||
.live-channels-window-shell .live-news-manage-list {
|
||||
min-height: 0;
|
||||
@@ -1823,8 +1839,8 @@ body.panel-resize-active iframe {
|
||||
/* Available channels section */
|
||||
.live-news-manage-available-section {
|
||||
border-top: 1px solid var(--border);
|
||||
padding-top: 16px;
|
||||
margin-top: 16px;
|
||||
padding-top: 8px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* Tab bar */
|
||||
@@ -1832,7 +1848,7 @@ body.panel-resize-active iframe {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: 8px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
.live-news-manage-tab-bar::-webkit-scrollbar { display: none; }
|
||||
@@ -1841,7 +1857,7 @@ body.panel-resize-active iframe {
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.75px;
|
||||
padding: 8px 12px;
|
||||
padding: 6px 10px;
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
@@ -1885,7 +1901,14 @@ body.panel-resize-active iframe {
|
||||
.live-news-manage-card.added {
|
||||
border-color: rgba(68, 255, 136, 0.3);
|
||||
background: rgba(68, 255, 136, 0.05);
|
||||
cursor: default;
|
||||
cursor: pointer;
|
||||
}
|
||||
.live-news-manage-card.added:hover {
|
||||
border-color: rgba(255, 80, 80, 0.5);
|
||||
background: rgba(255, 80, 80, 0.08);
|
||||
}
|
||||
.live-news-manage-card:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
/* Card icon (initials) */
|
||||
@@ -1937,6 +1960,7 @@ body.panel-resize-active iframe {
|
||||
}
|
||||
.live-news-manage-card:hover .live-news-manage-card-action { color: var(--green); }
|
||||
.live-news-manage-card.added .live-news-manage-card-action { color: var(--green); }
|
||||
.live-news-manage-card.added:hover .live-news-manage-card-action { color: var(--red); }
|
||||
|
||||
/* Tab count badge */
|
||||
.live-news-manage-tab-count {
|
||||
|
||||
Reference in New Issue
Block a user