MCPcopy Create free account
hub / github.com/error311/FileRise / renderVideoFallbackMessage

Function renderVideoFallbackMessage

public/js/fileListView.js:3933–3948  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3931 hoverPreviewContext.type === "file" &&
3932 hoverPreviewContext.file === file;
3933 const renderVideoFallbackMessage = () => {
3934 if (!isStillActive()) return;
3935 thumbEl.innerHTML = `
3936 <div style="
3937 padding:6px 8px;
3938 border-radius:6px;
3939 font-size:0.8rem;
3940 text-align:center;
3941 background-color:rgba(15,23,42,0.92);
3942 color:#e5e7eb;
3943 max-width:100%;
3944 ">
3945 ${escapeHTML(fallbackMsg)}
3946 </div>
3947 `;
3948 };
3949
3950 const sourceType = String(getSourceTypeById(sourceId || getActivePaneSourceId()) || '').toLowerCase();
3951 const isRemoteSource = sourceId !== '' && !isLocalSourceLike(sourceId);

Callers 2

renderRemoteVideoPreviewFunction · 0.85
fillHoverPreviewForRowFunction · 0.85

Calls 2

isStillActiveFunction · 0.85
escapeHTMLFunction · 0.85

Tested by

no test coverage detected