Skip to content

Commit e8ea830

Browse files
RyukemeisterRajiv Sahal
and
Rajiv Sahal
authored
shift pencil icon after input to make it wider (#15460)
Co-authored-by: Rajiv Sahal <rajivsahal@Rajivs-MacBook-Pro.local>
1 parent 1251091 commit e8ea830

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/ui/components/editable-heading/EditableHeading.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ export const EditableHeading = function EditableHeading({
2424
<div className={classNames(!disabled && "cursor-pointer", "flex items-center")}>
2525
<label className="min-w-8 relative inline-block">
2626
<span className="whitespace-pre text-xl tracking-normal text-transparent">{value}&nbsp;</span>
27-
{!isEditing && isReady && !disabled && (
28-
<Icon name="pencil" className="text-subtle group-hover:text-subtle -mt-px ml-1 inline h-3 w-3" />
29-
)}
3027
<input
3128
{...passThroughProps}
3229
disabled={disabled}
@@ -49,6 +46,9 @@ export const EditableHeading = function EditableHeading({
4946
}}
5047
onChange={(e) => onChange && onChange(e.target.value)}
5148
/>
49+
{!isEditing && isReady && !disabled && (
50+
<Icon name="pencil" className="text-subtle group-hover:text-subtle -mt-px ml-1 inline h-3 w-3" />
51+
)}
5252
</label>
5353
</div>
5454
</div>

0 commit comments

Comments
 (0)