Refine workflow condition spacing

Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
Taylor Ho
2026-08-14 09:58:37 -07:00
parent 705a0b566d
commit bbd0df4a69
2 changed files with 2 additions and 14 deletions
@@ -193,7 +193,7 @@ export function AuthorGridPicker({
return (
<div
className={cn("space-y-2", disabled && "opacity-50")}
className={cn("space-y-1", disabled && "opacity-50")}
data-testid="author-grid-picker"
>
<div className="flex items-center gap-2 rounded-lg border border-input/40 bg-background px-3 py-2">
@@ -23,7 +23,6 @@ import { Tabs, TabsList, TabsTrigger } from "@/shared/ui/tabs";
import { AuthorGridPicker } from "./AuthorGridPicker";
import { MessageIdPicker } from "./MessageIdPicker";
import { WorkflowEmojiField } from "./WorkflowEmojiField";
import { FieldLabel } from "./workflowFormPrimitives";
import {
buildConditionExpressions,
conditionFieldsForTrigger,
@@ -292,9 +291,6 @@ function ConditionEditorFields({
{editor.field === "webhook_field" ? (
<div className="space-y-1.5">
<FieldLabel htmlFor={`${controlIdPrefix}-webhook-field`}>
JSON field name
</FieldLabel>
<Input
aria-label="JSON field name"
autoCapitalize="off"
@@ -320,12 +316,7 @@ function ConditionEditorFields({
) : null}
{needsValue ? (
<div className="space-y-1.5">
<FieldLabel htmlFor={`${controlIdPrefix}-value`}>
{editor.field === "webhook_field"
? "Value"
: valueLabel(editor.field)}
</FieldLabel>
<div>
{editor.field === "trigger_author" ? (
<AuthorGridPicker
disabled={disabled}
@@ -638,9 +629,6 @@ export function WorkflowConditionBuilder({
</div>
) : (
<div className="animate-in space-y-2 fade-in duration-150 motion-reduce:animate-none">
<FieldLabel htmlFor={`${idPrefix}-advanced-expression`}>
Expression
</FieldLabel>
<Input
aria-label="Advanced expression"
autoCapitalize="off"