Skip to content

Let's use AI to Earn!

feat: ctrl+i 归位

gaoSir9adb9e7a1f81
diff --git a/electron/main/views.ts b/electron/main/views.ts
index ff492f40..fe964460 100644
--- a/electron/main/views.ts
+++ b/electron/main/views.ts
@@ -20,6 +20,10 @@ export interface ISaveFileParams {
}
export function views(win: Electron.BrowserWindow) {
+ ipcMain.handle('OPEN_DEV_TOOLS', () => {
+ win.webContents.openDevTools({ mode: 'right' });
+ });
+
ipcMain.handle(
'ICP_VIEWS_SAVE_FILE',
(event, { saveDir, filename, file }: ISaveFileParams) => {
diff --git a/src/index.css b/src/index.css
index 3d517522..6dd9d732 100644
--- a/src/index.css
+++ b/src/index.css
@@ -99,3 +99,24 @@ ul {
padding: 0;
margin: 0;
}
+
+/* 全局自定义滚动条样式 */
+*::-webkit-scrollbar {
+ width: 10px;
+ height: 10px;
+}
+
+*::-webkit-scrollbar-track {
+ background: transparent;
+ border-radius: 6px;
+}
+
+*::-webkit-scrollbar-thumb {
+ background: #cccccc;
+ border-radius: 6px;
+ border: 2px solid #f0f0f0;
+}
+
+*::-webkit-scrollbar-thumb:hover {
+ background: #a2a2a2;
+}
\ No newline at end of file