Skip to content

Commit 9c5e513

Browse files
authored
RI-7540: update key name text input styles (#5011)
* RI-7552: close popover on escape press * RI-7552: unfocus input on esc press * RI-7540: update key name text input styles * RI-7540: grow input field * use flex item grow
1 parent ab49b48 commit 9c5e513

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

redisinsight/ui/src/pages/browser/modules/key-details-header/components/key-details-header-name/KeyDetailsHeaderName.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,12 @@ const KeyDetailsHeaderName = ({ onEditKey }: Props) => {
147147

148148
return (
149149
<FlexItem
150-
grow
150+
grow={5}
151151
direction="row"
152152
onMouseEnter={onMouseEnterKey}
153153
onMouseLeave={onMouseLeaveKey}
154154
onClick={onClickKey}
155-
className={cx(
156-
styles.keyFlexItem, // TODO with styles.keyFlexItemEditing
157-
keyIsEditing || keyIsHovering ? styles.keyFlexItemEditing : null,
158-
)}
155+
$gap="xs"
159156
data-testid="edit-key-btn"
160157
>
161158
{keyIsEditing || keyIsHovering ? (

redisinsight/ui/src/pages/browser/modules/key-details-header/components/key-details-header-name/styles.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
.toolTipAnchorKey {
1111
max-width: 450px;
1212
height: 31px !important;
13+
width: 100%;
1314
}
1415

1516
.keyInput {
@@ -21,6 +22,7 @@
2122
white-space: nowrap;
2223
overflow: hidden;
2324
text-overflow: ellipsis;
25+
padding-right: 6px;
2426
}
2527

2628
:global(.browserPage .key-details-header .euiFormControlLayout) {

0 commit comments

Comments
 (0)