From 17dd6ac011bb9579828f327b2d12ac37fb8bd4fe Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Mon, 18 Mar 2024 22:19:57 -0700 Subject: [PATCH] feat: add closable cutouts Didn't even code it, Svelte magic made it start working mid development even though I didn't add half the logic. :D --- client/src/App.svelte | 8 +++-- client/src/lib/Apps/Settings/Settings.svelte | 1 + .../Dashboard/Cutouts/ClosableCutout.svelte | 32 +++++++++++++++++++ .../src/lib/Dashboard/Cutouts/Cutouts.svelte | 20 ++++++++++++ 4 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 client/src/lib/Dashboard/Cutouts/ClosableCutout.svelte create mode 100644 client/src/lib/Dashboard/Cutouts/Cutouts.svelte diff --git a/client/src/App.svelte b/client/src/App.svelte index 2a22397..73e6701 100644 --- a/client/src/App.svelte +++ b/client/src/App.svelte @@ -12,6 +12,7 @@ import { settingsStore } from './lib/stores/settingsStore' import getSettings from './lib/utils/getSettings' import hideSplashscreen from './lib/utils/hideSplashscreen' + import Cutouts from './lib/Dashboard/Cutouts/Cutouts.svelte' let activeApp: App = 'camera' // fake loading splash screen to look cool if the model loads too fast @@ -78,6 +79,9 @@ + + + @@ -88,14 +92,14 @@ .infotainment-container { background-image: url('./assets/wallpaper.jpg'); - background-repeat: no-repeat; + background-repeat: repeat-y; background-size: cover; /* hide scrollbar */ -ms-overflow-style: none; scrollbar-width: none; background-position: top right; width: 65vw; - height: 100vw; + height: 100vh; } .infotainment-container::-webkit-scrollbar { diff --git a/client/src/lib/Apps/Settings/Settings.svelte b/client/src/lib/Apps/Settings/Settings.svelte index 88a0769..854020b 100644 --- a/client/src/lib/Apps/Settings/Settings.svelte +++ b/client/src/lib/Apps/Settings/Settings.svelte @@ -119,6 +119,7 @@ +