mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Show one-source events' pictures and play their clips in the News panel
A feed card shows its event's picture whatever the number of sources, so a lone Telegram post opening with a video gets its preview; the globe's picture cards still need two. An event picture may carry its post's clip (an HTTPS MP4 or WebM file): the card marks it with a play sign, and opened, it plays with controls and sound, loading nothing before. An expired link drops the clip.
This commit is contained in:
1 parent
f72f79f48b
commit
74d40c4b1a
7 files changed
+171
-12
No files matched your search
@@ -226,6 +226,25 @@
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
/* A clip waits behind its picture; the open card plays it. */
|
||||
.news-card__play {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
|
||||
pointer-events: none;
|
||||
}
|
||||
.news-card__clip {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-height: 220px;
|
||||
margin-bottom: 6px;
|
||||
border-radius: 4px;
|
||||
background: #000;
|
||||
}
|
||||
.news-card__credit {
|
||||
position: absolute;
|
||||
inset-inline-end: 0;
|
||||
|
||||
Reference in new issue
Block a user