🐛 fix #289,#291,#290

This commit is contained in:
muwoo
2023-11-10 14:35:37 +08:00
parent dfb8446cfd
commit f671b83b6a
17 changed files with 277 additions and 88 deletions

View File

@@ -4,5 +4,6 @@ import path from 'path';
const appPath = app.getPath('userData');
const PLUGIN_INSTALL_DIR = path.join(appPath, './rubick-plugins-new');
const PLUGIN_HISTORY = 'rubick-local-start-app';
export { PLUGIN_INSTALL_DIR };
export { PLUGIN_INSTALL_DIR, PLUGIN_HISTORY };

View File

@@ -9,7 +9,8 @@ const useDrag = () => {
let draggable = true;
const onMouseDown = (e) => {
// if (commonConst.macOS()) return;
// 右击不移动
if (e.button === 2) return;
draggable = true;
mouseX = e.clientX;
mouseY = e.clientY;

View File

@@ -1,6 +1,6 @@
const WINDOW_MAX_HEIGHT = 600;
const WINDOW_MAX_HEIGHT = 620;
const WINDOW_MIN_HEIGHT = 60;
const PRE_ITEM_HEIGHT = 60;
const PRE_ITEM_HEIGHT = 70;
const HISTORY_HEIGHT = 70;
export default (searchList: Array<any>, historyList): number => {