diff --git a/electron/main.js b/electron/main.js index 2692715..e797e0c 100644 --- a/electron/main.js +++ b/electron/main.js @@ -26,7 +26,6 @@ const isDev = process.env.NODE_ENV === 'development'; function createWindow() { //创建窗口 mainWindow = new BrowserWindow({ - height: 900, webPreferences: { preload: path.join(__dirname, 'preload.js'), webSecurity: false, @@ -35,10 +34,11 @@ function createWindow() { backgroundColor: '#2e2c29', darkTheme: true, title: 'Locking', - width: 1700, + width: 720, + height: 600, frame: false, - minWidth: 1300, - minHeight: 900, + minWidth: 720, + minHeight: 600, }); // 隐藏菜单栏 mainWindow.setMenuBarVisibility(false); diff --git a/src/pages/log/index.tsx b/src/pages/log/index.tsx index bd87471..f5b795b 100644 --- a/src/pages/log/index.tsx +++ b/src/pages/log/index.tsx @@ -15,14 +15,20 @@ enum LogActionType { } const tableColumns: Array> = [ - { dataIndex: 'archName', title: '名称' }, - { dataIndex: 'projName', title: '所属文件夹', search: false, width: 400 }, + { dataIndex: 'archName', title: '名称', width: 150, ellipsis: true }, + { + dataIndex: 'projName', + title: '所属文件夹', + search: false, + width: 150, + ellipsis: true, + }, // { dataIndex: 'size', title: '大小', search: false }, { dataIndex: 'actionType', title: '操作类型', search: false, - width: 200, + width: 96, valueEnum: { [LogActionType.Download]: '下载', [LogActionType.Delete]: '删除', @@ -31,11 +37,11 @@ const tableColumns: Array> = [ filters: true, onFilter: (v, record) => record.actionType === v, }, - { dataIndex: 'createUser', title: '操作人', search: false, width: 200 }, + { dataIndex: 'createUser', title: '操作人', search: false, width: 96 }, { dataIndex: 'createTime', valueType: 'dateTime', - width: 200, + width: 150, title: '操作时间', search: false, sorter: (a, b) => a.timestamp - b.timestamp, @@ -78,6 +84,7 @@ export default function LogView() {
rowKey="id" + search={{ span: { xs: 24, sm: 24, md: 12, lg: 12, xl: 8, xxl: 6 } }} className={styles.tableWrapper} tableClassName={styles.table} columns={tableColumns}