Skip to content

Commit 46efb7c

Browse files
authored
Center align model evaluation run link (#3488)
1 parent 79d4e8c commit 46efb7c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

extensions/ql-vscode/src/view/model-editor/ModelEvaluation.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { styled } from "styled-components";
12
import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react";
23
import type { ModeledMethod } from "../../model-editor/modeled-method";
34
import type { ModelEditorViewState } from "../../model-editor/shared/view-state";
@@ -16,6 +17,11 @@ export type Props = {
1617
evaluationRun: ModelEvaluationRunState | undefined;
1718
};
1819

20+
const RunLink = styled(VSCodeLink)`
21+
display: flex;
22+
align-items: center;
23+
`;
24+
1925
export const ModelEvaluation = ({
2026
viewState,
2127
modeledMethods,
@@ -61,12 +67,12 @@ export const ModelEvaluation = ({
6167
</VSCodeButton>
6268
)}
6369
{shouldShowEvaluationRunLink && (
64-
<VSCodeLink>
70+
<RunLink>
6571
<LinkIconButton onClick={openModelAlertsView}>
6672
<span slot="end" className="codicon codicon-link-external"></span>
6773
Evaluation run
6874
</LinkIconButton>
69-
</VSCodeLink>
75+
</RunLink>
7076
)}
7177
</>
7278
);

0 commit comments

Comments
 (0)