Skip to content

Commit

Permalink
fix(frontend): use @import for importing css
Browse files Browse the repository at this point in the history
Instead of normal import in scripts
  • Loading branch information
ravenclaw900 committed Feb 13, 2022
1 parent a669584 commit 824efbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/frontend/src/pages/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { tweened } from "svelte/motion";
import prettyBytes from "pretty-bytes";
import uPlot from "uplot";
import "uplot/dist/uplot.min.css";
import { onMount, onDestroy } from "svelte";
interface statData {
Expand Down Expand Up @@ -202,7 +201,6 @@
let handle2 = setInterval(() => {
let oldSize = getSize();
console.log("e");
setTimeout(() => {
let newSize = getSize();
if (oldSize != newSize) {
Expand Down Expand Up @@ -250,3 +248,7 @@
{/if}
</Card>
</main>

<style>
@import "uplot/dist/uplot.min.css";
</style>
6 changes: 4 additions & 2 deletions src/frontend/src/pages/Terminal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import { onDestroy } from "svelte";
import "xterm/css/xterm.css";
export let loginDialog: boolean;
export let node: string;
Expand Down Expand Up @@ -48,3 +46,7 @@
</script>

<div bind:this={termDiv} class="h-full{loginDialog ? ' hidden' : ''}" />

<style>
@import "xterm/css/xterm.css";
</style>

0 comments on commit 824efbf

Please sign in to comment.