Skip to content

Commit

Permalink
chore: update style of xterm terminal (#8986)
Browse files Browse the repository at this point in the history
* chore: update style of xterm terminal
Signed-off-by: Sonia Sandler <[email protected]>
  • Loading branch information
SoniaSandler authored Sep 20, 2024
1 parent 165060f commit 88051b0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ onDestroy(() => {
});
</script>

<div class="h-full" bind:this={terminalXtermDiv} class:hidden={container.state !== 'RUNNING'}></div>
<div
class="h-full p-[5px] pr-0 bg-[var(--pd-terminal-background)]"
bind:this={terminalXtermDiv}
class:hidden={container.state !== 'RUNNING'}>
</div>

<EmptyScreen
hidden={container.state === 'RUNNING'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ onDestroy(() => {
</div>

<div
class="bg-[var(--pd-terminal-background)]"
class="bg-[var(--pd-terminal-background)] p-[5px] pr-0"
style="width: 100%; text-align: left; display: {initializeError ? 'block' : 'none'}"
bind:this={logsXtermDiv}>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function onInstallationClick() {
</div>

<div
class="bg-[var(--pd-terminal-background)]"
class="bg-[var(--pd-terminal-background)] p-[5px] pr-0"
style="width: 100%; text-align: left; display: {initializeError ? 'block' : 'none'}"
bind:this={logsXtermDiv}>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/lib/pod/KubernetesTerminal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ function saveTerminalState(podName: string, containerName: string, state: State)
}
</script>

<div class="h-full w-full" bind:this={terminalXtermDiv}></div>
<div class="h-full w-full p-[5px] pr-0 bg-[var(--pd-terminal-background)]" bind:this={terminalXtermDiv}></div>
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ onDestroy(() => {

<div
aria-label="terminal"
class="min-w-full flex flex-col bg-[var(--pd-terminal-background)]"
class="min-w-full flex flex-col bg-[var(--pd-terminal-background)] p-[5px] pr-0"
class:invisible={noLogs === true}
class:h-0={noLogs === true}
class:h-full={noLogs === false}
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/lib/ui/TerminalWindow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ onDestroy(() => {
});
</script>

<div class={$$props.class} bind:this={logsXtermDiv}></div>
<div class="{$$props.class} p-[5px] pr-0 bg-[var(--pd-terminal-background)]" bind:this={logsXtermDiv}></div>

0 comments on commit 88051b0

Please sign in to comment.