Change experiment button styling (#93)

* Change button styling

* Fix prettier
This commit is contained in:
arcticfly
2023-07-25 11:41:02 -07:00
committed by GitHub
parent fa61c9c472
commit 223b990005
3 changed files with 4 additions and 15 deletions

View File

@@ -36,17 +36,9 @@ export const DeleteButton = () => {
return (
<>
<Button
size="sm"
variant={{ base: "outline", lg: "ghost" }}
colorScheme="red"
fontWeight="normal"
onClick={onOpen}
>
<Button size="sm" variant="ghost" colorScheme="red" fontWeight="normal" onClick={onOpen}>
<Icon as={BsTrash} boxSize={4} />
<Text display={{ base: "none", lg: "block" }} ml={2}>
Delete Experiment
</Text>
<Text ml={2}>Delete Experiment</Text>
</Button>
<AlertDialog isOpen={isOpen} leastDestructiveRef={cancelRef} onClose={onClose}>

View File

@@ -24,7 +24,7 @@ export const HeaderButtons = () => {
colorScheme={canModify ? undefined : "orange"}
bgColor={canModify ? undefined : "orange.400"}
minW={0}
variant={canModify ? "ghost" : "solid"}
variant={{ base: "solid", md: canModify ? "ghost" : "solid" }}
>
{isForking ? <Spinner boxSize={5} /> : <Icon as={TbGitFork} boxSize={5} />}
<Text ml={2}>Fork</Text>

View File

@@ -157,7 +157,6 @@ export const queryModel = defineTask<QueryModelJob>("queryModel", async (task) =
});
export const queueQueryModel = async (cellId: string, stream: boolean) => {
console.log("queueQueryModel", cellId, stream);
await Promise.all([
prisma.scenarioVariantCell.update({
where: {
@@ -168,8 +167,6 @@ export const queueQueryModel = async (cellId: string, stream: boolean) => {
errorMessage: null,
},
}),
await queryModel.enqueue({ cellId, stream }),
console.log("queued"),
queryModel.enqueue({ cellId, stream }),
]);
};