From 2ce947d216ad1dafd51528825f250a5e35a94a63 Mon Sep 17 00:00:00 2001 From: Sabir Hassan Date: Tue, 26 Jul 2022 14:16:27 +0500 Subject: [PATCH] chore: code fixes --- api/src/controllers/drive.ts | 2 +- web/src/containers/Studio/editor.tsx | 2 +- web/src/containers/Studio/sideBar.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/controllers/drive.ts b/api/src/controllers/drive.ts index 1b7a6ca..4d0a30c 100644 --- a/api/src/controllers/drive.ts +++ b/api/src/controllers/drive.ts @@ -337,7 +337,7 @@ const getFile = async (req: express.Request, filePath: string) => { req.res?.setHeader('Content-type', 'text/plain') } - req.res?.sendFile(path.resolve(filePathFull)) + req.res?.sendFile(path.resolve(filePathFull), { dotfiles: 'allow' }) } const getFolder = async (folderPath?: string) => { diff --git a/web/src/containers/Studio/editor.tsx b/web/src/containers/Studio/editor.tsx index 4dad172..f8b0b76 100644 --- a/web/src/containers/Studio/editor.tsx +++ b/web/src/containers/Studio/editor.tsx @@ -306,7 +306,7 @@ const SASjsEditor = ({ borderColor: 'divider', position: 'fixed', background: 'white', - width: '100%' + width: '85%' }} > diff --git a/web/src/containers/Studio/sideBar.tsx b/web/src/containers/Studio/sideBar.tsx index dc9f767..65af0bc 100644 --- a/web/src/containers/Studio/sideBar.tsx +++ b/web/src/containers/Studio/sideBar.tsx @@ -7,7 +7,7 @@ import BootstrapSnackbar, { AlertSeverityType } from '../../components/snackbar' import Modal from '../../components/modal' import { TreeNode } from '../../utils/types' -const drawerWidth = 240 +const drawerWidth = '15%' type Props = { selectedFilePath: string