mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-15 19:22:26 +08:00
fix: editor fails to resize after toggling on macos
This commit is contained in:
parent
aa9e63b51a
commit
4e4f9af5b7
|
@ -216,7 +216,12 @@ export const EditorViewer = <T extends Language>(props: Props<T>) => {
|
|||
color="inherit"
|
||||
title={t(isMaximized ? "Minimize" : "Maximize")}
|
||||
onClick={() =>
|
||||
appWindow.toggleMaximize().then(() => editorRef.current?.layout())
|
||||
appWindow.toggleMaximize().then(() => {
|
||||
editorRef.current?.layout();
|
||||
setTimeout(() => {
|
||||
editorRef.current?.layout();
|
||||
}, 500);
|
||||
})
|
||||
}
|
||||
>
|
||||
{isMaximized ? <CloseFullscreenIcon /> : <OpenInFullIcon />}
|
||||
|
|
|
@ -133,9 +133,9 @@
|
|||
"Exclude Type": "排除节点类型",
|
||||
"Disable UDP": "禁用UDP",
|
||||
"Hidden": "隐藏代理组",
|
||||
"Extend Config": "扩展配置",
|
||||
"Group Name Required": "代理组名称不能为空",
|
||||
"Group Name Already Exists": "代理组名称已存在",
|
||||
"Extend Config": "扩展配置",
|
||||
"Extend Script": "扩展脚本",
|
||||
"Global Merge": "全局扩展配置",
|
||||
"Global Script": "全局扩展脚本",
|
||||
|
|
Loading…
Reference in New Issue
Block a user