Skip to content

Commit d60cbcd

Browse files
committed
bad comment
Signed-off-by: Adameska <[email protected]>
1 parent 7c3292f commit d60cbcd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/webview/src/component/pods/PodLogs.svelte

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { SvelteMap } from 'svelte/reactivity';
88
import NoLogIcon from '/@/component/icons/NoLogIcon.svelte';
99
import { detectJsonLogs } from '/@/component/terminal/json-colorizer';
1010
import {
11-
ansi256Colours,
12-
colorizeJSON,
13-
colorizeLogLevel,
14-
colourizedANSIContainerName,
11+
ansi256Colours,
12+
colorizeJSON,
13+
colorizeLogLevel,
14+
colourizedANSIContainerName,
1515
} from '/@/component/terminal/terminal-colors';
1616
import TerminalWindow from '/@/component/terminal/TerminalWindow.svelte';
1717
import { Streams } from '/@/stream/streams';
@@ -109,10 +109,8 @@ const calculatePrefixLength = (): number => {
109109
};
110110
111111
/**
112-
* Calculates the maximum container name length for padding prefixes in multi-container
113-
* pods so that log lines align correctly.
114-
*
115-
* @returns Max container name length for prefix padding
112+
+ * Sets up ANSI color mappings for container name prefixes in multi-container pods.
113+
+ * Cycles through available colors using modulo when there are more containers than colors.
116114
*/
117115
const setupPrefixColours = (): void => {
118116
object.spec?.containers.forEach((container, index) => {

0 commit comments

Comments
 (0)