style: annihilate scrollbar
This commit is contained in:
parent
fff56645cc
commit
afa26f7eea
3 changed files with 51 additions and 48 deletions
|
@ -1,58 +1,58 @@
|
|||
<script lang="ts">
|
||||
import '@fontsource/roboto/latin.css'
|
||||
import 'material-icons/iconfont/material-icons.css'
|
||||
import Dashboard from './lib/Dashboard/Dashboard.svelte'
|
||||
import 'material-symbols'
|
||||
import AppBar from './lib/Apps/AppBar.svelte'
|
||||
import { appList } from './lib/Apps/appList'
|
||||
import { initializeTelemetry } from './lib/utils/initializeTelemetry'
|
||||
import { onMount } from 'svelte'
|
||||
import { Toaster } from 'svelte-french-toast'
|
||||
import { initializationSequence } from './lib/Sequences/sequences'
|
||||
import Loading from './lib/Loading/Loading.svelte'
|
||||
import { settingsStore } from './lib/stores/settingsStore'
|
||||
import getSettings from './lib/utils/getSettings'
|
||||
import { Svrollbar } from 'svrollbar'
|
||||
import "@fontsource/roboto/latin.css";
|
||||
import "material-icons/iconfont/material-icons.css";
|
||||
import Dashboard from "./lib/Dashboard/Dashboard.svelte";
|
||||
import "material-symbols";
|
||||
import AppBar from "./lib/Apps/AppBar.svelte";
|
||||
import { appList } from "./lib/Apps/appList";
|
||||
import { initializeTelemetry } from "./lib/utils/initializeTelemetry";
|
||||
import { onMount } from "svelte";
|
||||
import { Toaster } from "svelte-french-toast";
|
||||
import { initializationSequence } from "./lib/Sequences/sequences";
|
||||
import Loading from "./lib/Loading/Loading.svelte";
|
||||
import { settingsStore } from "./lib/stores/settingsStore";
|
||||
import getSettings from "./lib/utils/getSettings";
|
||||
import { Svrollbar } from "svrollbar";
|
||||
|
||||
let activeApp: App = 'camera'
|
||||
let activeApp: App = "camera";
|
||||
let topics: TelemetryTopics = {
|
||||
doubles: [
|
||||
'orientation',
|
||||
'chassis-x-speed',
|
||||
'chassis-y-speed',
|
||||
'accx',
|
||||
'accy',
|
||||
'accz',
|
||||
'jerk-x',
|
||||
'jerk-y',
|
||||
'voltage',
|
||||
"orientation",
|
||||
"chassis-x-speed",
|
||||
"chassis-y-speed",
|
||||
"accx",
|
||||
"accy",
|
||||
"accz",
|
||||
"jerk-x",
|
||||
"jerk-y",
|
||||
"voltage",
|
||||
],
|
||||
strings: ['acc-profile', 'gear'],
|
||||
booleans: ['ebrake', 'reorient', 'gpws'],
|
||||
}
|
||||
strings: ["acc-profile", "gear"],
|
||||
booleans: ["ebrake", "reorient", "gpws"],
|
||||
};
|
||||
|
||||
let loading = $settingsStore.fastStartup ? false : true
|
||||
let loading = $settingsStore.fastStartup ? false : true;
|
||||
|
||||
onMount(() => {
|
||||
let savedSettings = getSettings()
|
||||
let savedSettings = getSettings();
|
||||
if (savedSettings !== false) {
|
||||
settingsStore.set(savedSettings)
|
||||
settingsStore.set(savedSettings);
|
||||
}
|
||||
initializeTelemetry(topics, 200)
|
||||
initializeTelemetry(topics, 200);
|
||||
setTimeout(() => {
|
||||
loading = false
|
||||
initializationSequence()
|
||||
}, 3000)
|
||||
})
|
||||
loading = false;
|
||||
initializationSequence();
|
||||
}, 3000);
|
||||
});
|
||||
|
||||
let infotainmentViewport: Element
|
||||
let infotainmentContent: Element
|
||||
let infotainmentViewport: Element;
|
||||
let infotainmentContent: Element;
|
||||
</script>
|
||||
|
||||
<Svrollbar />
|
||||
|
||||
<main
|
||||
class="select-none transition-opacity duration-300 overflow-x-hidden"
|
||||
class="select-none transition-opacity duration-300 overflow-hidden"
|
||||
class:opacity-0={loading}
|
||||
>
|
||||
<!-- driver dashboard -->
|
||||
|
@ -87,7 +87,7 @@
|
|||
|
||||
<style lang="postcss">
|
||||
main {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-family: "Roboto", sans-serif;
|
||||
}
|
||||
|
||||
.infotainment-container {
|
||||
|
|
|
@ -13,11 +13,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
@apply bg-black text-white;
|
||||
/* hide scrollbar */
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
|
||||
overflow: auto; /* or 'scroll' if you always want scrollability */
|
||||
scrollbar-width: none; /* Hide scrollbar for Firefox */
|
||||
-ms-overflow-style: none; /* Hide scrollbar for IE 10+ and Edge */
|
||||
}
|
||||
body::-webkit-scrollbar {
|
||||
display: none;
|
||||
|
|
|
@ -7,21 +7,21 @@
|
|||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { onDestroy } from 'svelte'
|
||||
import { fade } from 'svelte/transition'
|
||||
import { infotainmentBootupSequence } from '../Sequences/sequences'
|
||||
import { onDestroy } from "svelte";
|
||||
import { fade } from "svelte/transition";
|
||||
import { infotainmentBootupSequence } from "../Sequences/sequences";
|
||||
|
||||
export let useContainer: boolean = true
|
||||
export let useContainer: boolean = true;
|
||||
|
||||
onDestroy(() => {
|
||||
infotainmentBootupSequence()
|
||||
})
|
||||
infotainmentBootupSequence();
|
||||
});
|
||||
</script>
|
||||
|
||||
<div
|
||||
in:fade={{ duration: 150, delay: 150 }}
|
||||
out:fade={{ duration: 150 }}
|
||||
class:app-container={useContainer}
|
||||
class:overflow-hidden={true}
|
||||
{...$$restProps}
|
||||
>
|
||||
<slot />
|
||||
|
|
Loading…
Reference in a new issue