mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Stories: drop the Live chip and filter no story can show
No GEV story is live, so the LIVE card chip, the Live topic filter, the catalog's live field and their styles are removed.
This commit is contained in:
1 parent
095e4161d8
commit
40f537a8b9
5 files changed
+4
-38
No files matched your search
@@ -16,7 +16,6 @@
|
||||
--text-dim: rgba(232, 234, 237, 0.42);
|
||||
--menu-bg: #12121c;
|
||||
--warn: #ffb45a;
|
||||
--live: #ff4d4d;
|
||||
--cable: #a9b8ff;
|
||||
--font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
|
||||
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
|
||||
@@ -716,24 +716,6 @@
|
||||
color: #eaf6f9;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#gev-stories .chip .dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--live);
|
||||
animation: gsx-pulse 1.6s ease-out infinite;
|
||||
}
|
||||
@keyframes gsx-pulse {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6);
|
||||
}
|
||||
70% {
|
||||
box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
|
||||
}
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
|
||||
}
|
||||
}
|
||||
#gev-stories .thumb .chip {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
@@ -2800,12 +2782,6 @@
|
||||
border-color: rgba(0, 212, 255, 0.6);
|
||||
color: var(--accent);
|
||||
}
|
||||
#gev-stories .chip.live i {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--live);
|
||||
}
|
||||
#gev-stories .fh-sort {
|
||||
flex: none;
|
||||
height: 28px;
|
||||
|
||||
@@ -62,10 +62,7 @@ const shown = computed(() => {
|
||||
const m = metaFor(s);
|
||||
const txt = searchText(s);
|
||||
if (words.some((w) => !txt.includes(w))) return false;
|
||||
if (
|
||||
chips.value.length &&
|
||||
!chips.value.some((c) => (c === 'Live' ? s.live : m.topics.includes(c)))
|
||||
)
|
||||
if (chips.value.length && !chips.value.some((c) => m.topics.includes(c)))
|
||||
return false;
|
||||
if (f.region?.length && !f.region.includes(m.region)) return false;
|
||||
if (
|
||||
@@ -548,10 +545,9 @@ defineExpose({
|
||||
:key="c"
|
||||
type="button"
|
||||
class="chip"
|
||||
:class="{ live: c === 'Live' }"
|
||||
:aria-pressed="chips.includes(c)"
|
||||
@click="toggleChip(c)"
|
||||
><i v-if="c === 'Live'"></i>{{ t(c) }}</button
|
||||
>{{ t(c) }}</button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -623,10 +619,7 @@ defineExpose({
|
||||
alt=""
|
||||
loading="lazy"
|
||||
/>
|
||||
<span v-if="s.live" class="chip"
|
||||
><span class="dot"></span>{{ t('LIVE') }}</span
|
||||
>
|
||||
<span v-else class="chip">{{
|
||||
<span class="chip">{{
|
||||
s.draft ? t('DRAFT') : t('STORY')
|
||||
}}</span>
|
||||
<span class="dur">{{ fmtDur(s.durationMs) }}</span>
|
||||
|
||||
@@ -342,7 +342,7 @@ watch([k, page], () => nextTick(sizeCard));
|
||||
<div class="ch-credit">
|
||||
<span class="label"
|
||||
><span class="chip">{{
|
||||
story.live ? t('LIVE') : story.draft ? t('DRAFT') : t('STORY')
|
||||
story.draft ? t('DRAFT') : t('STORY')
|
||||
}}</span></span
|
||||
>
|
||||
<div class="t">{{ title }}</div>
|
||||
|
||||
Reference in new issue
Block a user