From c1f085d26e0bedf97a5a43b4ff4290f2a23a0f43 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 10 May 2023 18:56:00 +0200 Subject: [PATCH] Improved default GCal css --- src/settings.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/settings.ts b/src/settings.ts index ff44b9c..5d17ade 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -38,11 +38,12 @@ export const presets: Record = { openInCenter: true, zoomLevel: 1, forceIframe: false, - customCss: `/* hide the menu bar, "Keep" text, and logo */ -html > body > div:nth-child(2) > div:nth-child(2) > div:first-child[class*=" "], -html > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child, -html > body > div:nth-child(2) > div:nth-child(2) > div:first-child > div:first-child { -display: none !important; + customCss: `/* hide the menu bar "Calendar" text and remove minimum width */ +div[style*="min-width: 238px"] { + min-width: 0 !important; +} +div[style*="min-width: 238px"] span[role*="heading"] { + display: none !important; }` }, "keep": {