Change DataBase inside svelte to DBState for performance
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<script>
|
||||
import { DataBase } from '../../ts/storage/database';
|
||||
import { DBState } from '../../ts/storage/database.svelte';
|
||||
import { CharEmotion } from '../../ts/stores';
|
||||
import { getEmotion } from '../../ts/util';
|
||||
</script>
|
||||
|
||||
{#await getEmotion($DataBase,$CharEmotion, 'contain') then images}
|
||||
{#await getEmotion(DBState.db,$CharEmotion, 'contain') then images}
|
||||
{#each images as image, i}
|
||||
<div style={image + `width:${(100 / images.length)}%;bottom:0;left:${100 / images.length * i}%`} class="h-full bg-center absolute"></div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user