Button icon-touch/sm-touch sizes replace the repeated touch-target classes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -148,8 +148,8 @@ export function FlowDock({
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="size-11 text-muted-foreground md:size-8"
|
||||
size="icon-touch"
|
||||
className="text-muted-foreground"
|
||||
onClick={onAddNode}
|
||||
aria-label="Add node"
|
||||
data-testid="add-node"
|
||||
@@ -171,8 +171,8 @@ export function FlowDock({
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="hidden text-muted-foreground md:inline-flex md:size-8"
|
||||
size="icon-touch"
|
||||
className="hidden text-muted-foreground md:inline-flex"
|
||||
onClick={() => fitView({ ...FIT_VIEW, duration: 300 })}
|
||||
aria-label="Fit the flow to the screen"
|
||||
>
|
||||
@@ -190,9 +190,8 @@ export function FlowDock({
|
||||
/>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
size="sm-touch"
|
||||
className={cn(
|
||||
"h-11 gap-1.5 md:h-8",
|
||||
faults.length > 0
|
||||
? "text-destructive"
|
||||
: issuesOpen
|
||||
@@ -220,11 +219,8 @@ export function FlowDock({
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className={cn(
|
||||
"size-11 text-muted-foreground md:size-8",
|
||||
paused && "text-primary",
|
||||
)}
|
||||
size="icon-touch"
|
||||
className={cn("text-muted-foreground", paused && "text-primary")}
|
||||
onClick={onTogglePause}
|
||||
disabled={!enabled}
|
||||
aria-label={paused ? "Resume flow" : "Pause flow"}
|
||||
@@ -247,8 +243,8 @@ export function FlowDock({
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="size-11 text-muted-foreground md:size-8"
|
||||
size="icon-touch"
|
||||
className="text-muted-foreground"
|
||||
onClick={onStep}
|
||||
disabled={stepping}
|
||||
aria-label="Step the flow"
|
||||
@@ -266,8 +262,7 @@ export function FlowDock({
|
||||
<span>
|
||||
<Button
|
||||
variant="brand"
|
||||
size="sm"
|
||||
className="h-11 gap-1.5 md:h-8"
|
||||
size="sm-touch"
|
||||
onClick={onRun}
|
||||
disabled={running || !enabled}
|
||||
data-testid="run-flow"
|
||||
@@ -295,8 +290,8 @@ export function FlowDock({
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="size-11 text-muted-foreground md:size-8"
|
||||
size="icon-touch"
|
||||
className="text-muted-foreground"
|
||||
onClick={onEditFlow}
|
||||
aria-label="Flow settings"
|
||||
data-testid="edit-flow"
|
||||
@@ -314,8 +309,8 @@ export function FlowDock({
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="size-11 text-muted-foreground md:size-8"
|
||||
size="icon-touch"
|
||||
className="text-muted-foreground"
|
||||
onClick={onDiscard}
|
||||
aria-label="Discard the unpublished changes"
|
||||
data-testid="discard-draft"
|
||||
@@ -338,8 +333,8 @@ export function FlowDock({
|
||||
<span>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="size-11 text-muted-foreground md:size-8"
|
||||
size="icon-touch"
|
||||
className="text-muted-foreground"
|
||||
onClick={onPublish}
|
||||
disabled={!hasDraft || publishing || saving || !connected}
|
||||
aria-label="Publish this flow"
|
||||
|
||||
@@ -57,11 +57,8 @@ export function LogsTrigger({
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className={cn(
|
||||
"size-11 text-muted-foreground md:size-8",
|
||||
open && "text-primary",
|
||||
)}
|
||||
size="icon-touch"
|
||||
className={cn("text-muted-foreground", open && "text-primary")}
|
||||
onClick={() => onOpenChange(!open)}
|
||||
aria-pressed={open}
|
||||
aria-label="Logs"
|
||||
|
||||
Reference in New Issue
Block a user