diff --git a/assets/components/LogViewer/ContainerStat.vue b/assets/components/LogViewer/ContainerStat.vue
index 26f4c830..1e0878c7 100644
--- a/assets/components/LogViewer/ContainerStat.vue
+++ b/assets/components/LogViewer/ContainerStat.vue
@@ -31,7 +31,7 @@ const cpuData = computedWithControl(
value: stat.snapshot.cpu + "%",
}));
return points;
- }
+ },
);
const memoryData = computedWithControl(
@@ -44,7 +44,7 @@ const memoryData = computedWithControl(
value: formatBytes(stat.snapshot.memoryUsage),
}));
return points;
- }
+ },
);
diff --git a/assets/components/LogViewer/LogEventSource.spec.ts b/assets/components/LogViewer/LogEventSource.spec.ts
index 60d7d48c..405f0c56 100644
--- a/assets/components/LogViewer/LogEventSource.spec.ts
+++ b/assets/components/LogViewer/LogEventSource.spec.ts
@@ -44,7 +44,7 @@ describe("", () => {
hourStyle = "auto",
}: { searchFilter?: string | undefined; hourStyle?: "auto" | "24" | "12" } = {
hourStyle: "auto",
- }
+ },
) {
settings.value.hourStyle = hourStyle;
search.searchFilter.value = searchFilter;
diff --git a/assets/components/LogViewer/LogViewer.vue b/assets/components/LogViewer/LogViewer.vue
index 52384204..8dc85257 100644
--- a/assets/components/LogViewer/LogViewer.vue
+++ b/assets/components/LogViewer/LogViewer.vue
@@ -58,17 +58,25 @@ const routeHash = useRouteHash();
watch(
routeHash,
(hash) => {
- if(hash){
+ if (hash) {
document.querySelector(`[data-key="${hash.substring(1)}"]`)?.scrollIntoView({ block: "center" });
}
},
- { immediate: true, flush: "post" }
+ { immediate: true, flush: "post" },
);