Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions extensions/ql-vscode/src/view/model-editor/ModelEvaluation.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { styled } from "styled-components";
import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react";
import type { ModeledMethod } from "../../model-editor/modeled-method";
import type { ModelEditorViewState } from "../../model-editor/shared/view-state";
Expand All @@ -16,6 +17,11 @@ export type Props = {
evaluationRun: ModelEvaluationRunState | undefined;
};

const RunLink = styled(VSCodeLink)`
display: flex;
align-items: center;
`;

export const ModelEvaluation = ({
viewState,
modeledMethods,
Expand Down Expand Up @@ -61,12 +67,12 @@ export const ModelEvaluation = ({
</VSCodeButton>
)}
{shouldShowEvaluationRunLink && (
<VSCodeLink>
<RunLink>
<LinkIconButton onClick={openModelAlertsView}>
<span slot="end" className="codicon codicon-link-external"></span>
Evaluation run
</LinkIconButton>
</VSCodeLink>
</RunLink>
)}
</>
);
Expand Down