fix(video): 历史卡片标题防换行并隐藏blob链接

This commit is contained in:
root committed 2026-02-17 20:35:41 +08:00
1 parent 9894e9dafd
commit 4a07a8c78b
3 files changed
+23 -4

No files matched your search

+18
View File
@@ -116,11 +116,29 @@ body {
color: var(--accents-7);
}
.history-panel .video-item-bar {
flex-wrap: nowrap;
align-items: center;
}
.history-panel .video-item-title {
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.history-panel .video-item-actions .geist-button-outline {
color: var(--accents-7);
border-color: var(--video-outline);
}
.history-panel .video-item-actions {
flex-shrink: 0;
gap: 6px;
}
.history-panel .video-item-link {
color: var(--accents-4);
}
+3 -2
View File
@@ -491,10 +491,11 @@
const downloadBtn = item.querySelector('.video-download');
const link = item.querySelector('.video-item-link');
const safeUrl = url || '';
const isBlobUrl = /^blob:/i.test(safeUrl);
item.dataset.url = safeUrl;
if (link) {
link.textContent = safeUrl;
link.classList.toggle('has-url', Boolean(safeUrl));
link.textContent = isBlobUrl ? '' : safeUrl;
link.classList.toggle('has-url', Boolean(safeUrl) && !isBlobUrl);
}
if (openBtn) {
if (safeUrl) {
+2 -2
View File
@@ -18,7 +18,7 @@
<link href="https://cdn.jsdelivr.net/npm/geist@1.0.0/dist/fonts/geist-mono/style.css" rel="stylesheet">
<script src="/static/common/js/theme.js?v=0.1.0"></script>
<link href="/static/common/css/common.css?v=0.3.7" rel="stylesheet">
<link href="/static/public/css/video.css?v=0.4.3" rel="stylesheet">
<link href="/static/public/css/video.css?v=0.4.4" rel="stylesheet">
<link href="/static/common/css/toast.css" rel="stylesheet">
</head>
@@ -315,7 +315,7 @@
<script src="/static/common/js/pwa.js?v=0.1.1"></script>
<script src="/static/vendor/ffmpeg/ffmpeg.js?v=0.1.0"></script>
<script src="/static/vendor/ffmpeg/ffmpeg-util.js?v=0.1.0"></script>
<script src="/static/public/js/video.js?v=0.5.5"></script>
<script src="/static/public/js/video.js?v=0.5.6"></script>
</body>
</html>