fix: nav bar ui tweak

This commit is contained in:
BennyKok 2024-01-19 16:54:38 +08:00
parent e220921440
commit e7e91f4c50
6 changed files with 7 additions and 11 deletions

View File

@ -91,7 +91,7 @@ export function InsertModal<
<div className="flex justify-end">
<AutoFormSubmit>
Save Changes
<span className="ml-2">{isLoading && <LoadingIcon />}</span>
{isLoading && <LoadingIcon />}
</AutoFormSubmit>
</div>
</AutoForm>

View File

@ -38,9 +38,9 @@ export function Navbar() {
{!isDesktop && (
<Sheet>
<SheetTrigger asChild>
<Button variant="ghost" className="w-8 h-8 p-2">
<button className="flex items-center justify-center w-8 h-8 p-2">
<Menu />
</Button>
</button>
</SheetTrigger>
<SheetContent side="left" className="flex flex-col gap-4">
<SheetHeader>

View File

@ -92,9 +92,7 @@ export function RunWorkflowInline({
<div className="flex justify-end">
<AutoFormSubmit disabled={isLoading || loading}>
Run
<span className="ml-2">
{isLoading || loading ? <LoadingIcon /> : <Play size={14} />}
</span>
{isLoading || loading ? <LoadingIcon /> : <Play size={14} />}
</AutoFormSubmit>
</div>
</AutoForm>

View File

@ -281,9 +281,7 @@ export function RunWorkflowButton({
<div className="flex justify-end">
<AutoFormSubmit>
Run
<span className="ml-2">
{isLoading ? <LoadingIcon /> : <Play size={14} />}
</span>
{isLoading ? <LoadingIcon /> : <Play size={14} />}
</AutoFormSubmit>
</div>
</AutoForm>

View File

@ -21,7 +21,7 @@ export function AutoFormSubmit({
disabled?: boolean;
}) {
return (
<Button type="submit" disabled={disabled}>
<Button type="submit" disabled={disabled} className="flex gap-2">
{children ?? "Submit"}
</Button>
);

View File

@ -184,7 +184,7 @@ const buttonVariants = cva(styles.base, {
outline: styles.outline,
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
ghost: styles.plain,
link: "text-primary underline-offset-4 hover:underline",
link: "border-none text-primary underline-offset-4 hover:underline",
},
size: {
default: "h-10 px-4 py-2",