Center align model evaluation run link (#3488)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { styled } from "styled-components";
|
||||||
import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react";
|
import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react";
|
||||||
import type { ModeledMethod } from "../../model-editor/modeled-method";
|
import type { ModeledMethod } from "../../model-editor/modeled-method";
|
||||||
import type { ModelEditorViewState } from "../../model-editor/shared/view-state";
|
import type { ModelEditorViewState } from "../../model-editor/shared/view-state";
|
||||||
@@ -16,6 +17,11 @@ export type Props = {
|
|||||||
evaluationRun: ModelEvaluationRunState | undefined;
|
evaluationRun: ModelEvaluationRunState | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const RunLink = styled(VSCodeLink)`
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
`;
|
||||||
|
|
||||||
export const ModelEvaluation = ({
|
export const ModelEvaluation = ({
|
||||||
viewState,
|
viewState,
|
||||||
modeledMethods,
|
modeledMethods,
|
||||||
@@ -61,12 +67,12 @@ export const ModelEvaluation = ({
|
|||||||
</VSCodeButton>
|
</VSCodeButton>
|
||||||
)}
|
)}
|
||||||
{shouldShowEvaluationRunLink && (
|
{shouldShowEvaluationRunLink && (
|
||||||
<VSCodeLink>
|
<RunLink>
|
||||||
<LinkIconButton onClick={openModelAlertsView}>
|
<LinkIconButton onClick={openModelAlertsView}>
|
||||||
<span slot="end" className="codicon codicon-link-external"></span>
|
<span slot="end" className="codicon codicon-link-external"></span>
|
||||||
Evaluation run
|
Evaluation run
|
||||||
</LinkIconButton>
|
</LinkIconButton>
|
||||||
</VSCodeLink>
|
</RunLink>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user