fix: style on password button (#3037)

* fix: update TextAreaComponent styling for edit node table
Adjust the styling of the TextAreaComponent in the edit node table to fix the positioning of eye icon

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
anovazzi1 2024-07-29 16:34:40 -03:00 committed by GitHub
commit e15e70d43c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View file

@ -1078,7 +1078,6 @@
},
"node_modules/@clack/prompts/node_modules/is-unicode-supported": {
"version": "1.3.0",
"extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {

View file

@ -38,8 +38,7 @@ export default function TextAreaComponent({
? "text-clip password"
: "",
editNode ? "input-edit-node" : "",
password && editNode ? "pr-8" : "",
password && !editNode ? "pr-10" : "",
password != undefined ? "pr-8" : "",
"w-full",
)}
placeholder={"Type something..."}
@ -78,11 +77,11 @@ export default function TextAreaComponent({
</div>
</GenericModal>
{password !== undefined && (
<button
type="button"
<Button
unstyled
tabIndex={-1}
className={classNames(
"mb-px",
"mb-px text-muted-foreground hover:text-current",
editNode
? "side-bar-button-size absolute bottom-[1.3rem] right-[4.2rem]"
: "side-bar-button-size absolute bottom-4 right-[4.2rem]",
@ -126,7 +125,7 @@ export default function TextAreaComponent({
/>
</svg>
)}
</button>
</Button>
)}
</div>
</div>