svelte-log-view 4.2.13 → 4.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/LogView.svelte +4 -4
- package/src/log.css +1 -1
package/package.json
CHANGED
package/src/LogView.svelte
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
export let selected = 0;
|
|
10
10
|
export let start = 0; // first visible entry
|
|
11
11
|
|
|
12
|
-
let
|
|
12
|
+
let content;
|
|
13
13
|
let rows;
|
|
14
14
|
|
|
15
15
|
onDestroy(() => source.abort());
|
|
16
16
|
|
|
17
17
|
onMount(async () => {
|
|
18
|
-
rows =
|
|
18
|
+
rows = content.getElementsByTagName("log-row");
|
|
19
19
|
fetchFollow();
|
|
20
20
|
});
|
|
21
21
|
|
|
@@ -132,10 +132,10 @@
|
|
|
132
132
|
</script>
|
|
133
133
|
|
|
134
134
|
<svelte:window on:keydown={handleKeydown} />
|
|
135
|
-
<log-
|
|
135
|
+
<log-content bind:this={content}>
|
|
136
136
|
{#each visible as entry, i (i)}
|
|
137
137
|
<log-row>
|
|
138
138
|
<slot {entry} {selected} position={start + i} />
|
|
139
139
|
</log-row>
|
|
140
140
|
{/each}
|
|
141
|
-
</log-
|
|
141
|
+
</log-content>
|
package/src/log.css
CHANGED