mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Refine workflow condition spacing
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user