- 在命令分类中添加视频操作命令,支持视频压缩、视频转GIF、音频提取、视频剪切、视频旋转/翻转、添加水印、视频合并、视频调速、视频分辨率调整、视频格式转换、视频裁剪、导出图片序列、生成缩略图

This commit is contained in:
fofolee
2025-01-28 01:13:46 +08:00
parent 31a543d0c5
commit 70e01a53d8
11 changed files with 2590 additions and 7 deletions

View File

@@ -322,7 +322,7 @@ const showProcessBar = async (options = {}) => {
throw new Error("onPause 和 onResume 必须同时配置");
}
const windowWidth = 300;
const windowWidth = 350;
const windowHeight = 60;
// 计算窗口位置

View File

@@ -606,7 +606,16 @@ textarea:focus {
.process-text {
font-size: 13px;
margin-bottom: 8px;
padding-right: 20px;
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
width: calc(100% - 30px);
box-sizing: border-box;
}
.process-text::-webkit-scrollbar {
display: none;
}
.process-bar {
@@ -633,6 +642,21 @@ textarea:focus {
display: flex;
gap: 8px;
-webkit-app-region: no-drag;
z-index: 1;
}
/* 添加按钮区域的渐变遮罩 */
.process-buttons::before {
content: "";
position: absolute;
right: -8px;
/* 对应#process的padding-right */
top: -6px;
/* 对应#process的padding-top */
width: 80px;
height: 30px;
background: linear-gradient(to right, transparent, var(--button-bg) 60%);
pointer-events: none;
}
/* 进度条关闭按钮 */