Skip to content

Commit

Permalink
Make restart button spin in same direction as other restart button (#…
Browse files Browse the repository at this point in the history
…3588)

* make restart button spin in same direction as restart button

Authored-by: Jonathan McPherson <[email protected]>
Signed-off-by: Jonathan McPherson <[email protected]>
jmcphers committed Jun 18, 2024

Unverified

This user has not yet uploaded their public signing key.
1 parent a97002e commit 9a934c5
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*---------------------------------------------------------------------------------------------
* Copyright (C) 2023 Posit Software, PBC. All rights reserved.
* Copyright (C) 2023-2024 Posit Software, PBC. All rights reserved.
*--------------------------------------------------------------------------------------------*/

.runtime-restart-button {
@@ -9,4 +9,10 @@
width: fit-content;
padding-left: 10px;
padding-right: 10px;
background-color: var(--vscode-button-background);
color: var(--vscode-button-foreground);
}

.runtime-restart-button:hover {
background-color: var(--vscode-button-hoverBackground);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*---------------------------------------------------------------------------------------------
* Copyright (C) 2023 Posit Software, PBC. All rights reserved.
* Copyright (C) 2023-2024 Posit Software, PBC. All rights reserved.
*--------------------------------------------------------------------------------------------*/

import 'vs/css!./runtimeRestartButton';
@@ -37,7 +37,7 @@ export const RuntimeRestartButton = (props: RuntimeRestartButtonProps) => {
}));

return () => disposableStore.dispose();
},[props.positronConsoleInstance]);
}, [props.positronConsoleInstance]);

const handleRestart = () => {
// Invoke the restart callback.
@@ -54,7 +54,7 @@ export const RuntimeRestartButton = (props: RuntimeRestartButtonProps) => {
<button ref={restartRef}
className='monaco-text-button runtime-restart-button'
onClick={handleRestart}>
<span className='codicon codicon-debug-restart'></span>
<span className='codicon codicon-positron-restart-runtime'></span>
<span className='label'>{restartLabel}</span>
</button>
);

0 comments on commit 9a934c5

Please sign in to comment.