update:只读文件隐藏操作按钮

This commit is contained in:
xiaozhu
2026-08-13 16:05:16 +08:00
parent 532f0d6c91
commit 9160175d51
@@ -421,6 +421,7 @@ export function ScriptWorkspace({
<Icon name="chevron" size={13} /> <Icon name="chevron" size={13} />
<strong>{script.script_name}</strong> <strong>{script.script_name}</strong>
</div> </div>
{!isReadOnlyMode && (
<div className="editor-toolbar__actions"> <div className="editor-toolbar__actions">
{isPythonEditing ? ( {isPythonEditing ? (
<> <>
@@ -474,6 +475,7 @@ export function ScriptWorkspace({
} }
</span> </span>
</div> </div>
)}
</div> </div>
{/* 只读模式:显示只读编辑器 */} {/* 只读模式:显示只读编辑器 */}