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