From 110df1fb5531f8e138e6b919c3e1e2303d5bab7b Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Thu, 4 Jan 2024 14:42:55 +0200 Subject: [PATCH] customize Excalidraw options --- main.js | 4 ++-- src/App.css | 8 ++++++++ src/App.js | 17 ++++++++++++++++- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 4d4d7c6..42af6bd 100644 --- a/main.js +++ b/main.js @@ -17,8 +17,8 @@ const URL = require('node:url') function createWindow() { const mainWindow = new BrowserWindow({ - width: 800, - height: 600, + width: 1200, + height: 800, webPreferences: { preload: Path.join(__dirname, 'preload.js'), }, diff --git a/src/App.css b/src/App.css index 44a0c49..ca39d61 100644 --- a/src/App.css +++ b/src/App.css @@ -13,3 +13,11 @@ width: 80vw; height: 100vh; } + +.excalidraw .dropdown-menu .dropdown-menu-item[data-testid="json-export-button"], +.excalidraw .dropdown-menu .dropdown-menu-group, +.excalidraw .dropdown-menu div:not([class]), +label[title="Library"] +{ + display: none; +} diff --git a/src/App.js b/src/App.js index 734abfd..cdf9933 100644 --- a/src/App.js +++ b/src/App.js @@ -6,7 +6,22 @@ function App() {
- +
)