Skip to content

Commit

Permalink
Merge pull request #47 from zmzimpl/dev
Browse files Browse the repository at this point in the history
修复 mac 卡顿问题
修复代理删除 bug
  • Loading branch information
zmzimpl authored Feb 19, 2025
2 parents 34e42bc + c9b9268 commit 373cbe4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chrome-power",
"description": "The first open source multi-chrome manager tool.",
"version": "1.1.7",
"version": "1.1.8",
"private": true,
"author": {
"email": "zmzimpl@gmail.com",
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/db/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const batchDelete = async (ids: number[]) => {
// 首先,检查这些 IDs 是否被 window 表所引用
const referencedIds = await db('window')
.select('proxy_id')
.where('status', '>', 0)
.whereIn('proxy_id', ids)
.then(rows => rows.map(row => row.proxy_id));

Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/mainWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function createWindow() {
minWidth: 920,
minHeight: 700,
frame: false,
hasShadow: true,
hasShadow: process.platform === 'win32',
transparent: false,
backgroundColor: 'rgba(255, 255, 255, 0)',
movable: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/renderer/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ body {

#app {
background-image: url("../assets/bg2.png");
-webkit-backdrop-filter: blur(50px);
/* -webkit-backdrop-filter: blur(50px);
backdrop-filter: blur(50px);
box-shadow: 0 2px 10px 2px rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 10px 2px rgba(0, 0, 0, 0.1); */
border-radius: 12px;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/pages/extensions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ const Extensions = () => {
<Row gutter={[16, 16]} className="mt-4 overflow-y-auto max-h-[calc(100vh-200px)]">
{loading ? <Spin /> : (
extensions.map(ext => (
<Col span={6} key={ext.id}>
<Col xs={24} sm={12} md={8} lg={6} xl={6} xxl={4} key={ext.id}>
<Card
hoverable
title={ext.name}
Expand Down

0 comments on commit 373cbe4

Please sign in to comment.