shift pencil icon after input to make it wider (#15460)
Co-authored-by: Rajiv Sahal <[email protected]>
This commit is contained in:
1 parent
532b78a9b3
commit
518ab82e3b
1 file changed
+3
-3
@@ -24,9 +24,6 @@ export const EditableHeading = function EditableHeading({
|
||||
<div className={classNames(!disabled && "cursor-pointer", "flex items-center")}>
|
||||
<label className="min-w-8 relative inline-block">
|
||||
<span className="whitespace-pre text-xl tracking-normal text-transparent">{value} </span>
|
||||
{!isEditing && isReady && !disabled && (
|
||||
<Icon name="pencil" className="text-subtle group-hover:text-subtle -mt-px ml-1 inline h-3 w-3" />
|
||||
)}
|
||||
<input
|
||||
{...passThroughProps}
|
||||
disabled={disabled}
|
||||
@@ -49,6 +46,9 @@ export const EditableHeading = function EditableHeading({
|
||||
}}
|
||||
onChange={(e) => onChange && onChange(e.target.value)}
|
||||
/>
|
||||
{!isEditing && isReady && !disabled && (
|
||||
<Icon name="pencil" className="text-subtle group-hover:text-subtle -mt-px ml-1 inline h-3 w-3" />
|
||||
)}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user