Skip to content

Commit 5a0315e

Browse files
committed
fix(ui): update ttl input placement in key details header
re #RI-7602
1 parent 8aadad7 commit 5a0315e

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

redisinsight/ui/src/pages/browser/modules/key-details-header/components/key-details-header-ttl/KeyDetailsHeaderTTL.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,15 @@ const KeyDetailsHeaderTTL = ({ onEditTTL }: Props) => {
9696
<Grid
9797
columns={2}
9898
responsive={false}
99-
gap="none"
99+
gap="s"
100100
className={styles.ttlGridComponent}
101101
data-testid="edit-ttl-grid"
102102
>
103103
<FlexItem>
104-
<Text size="s" className={styles.subtitleText}>
104+
<Text
105+
size="s"
106+
className={cx(styles.subtitleText, styles.subtitleTextTTL)}
107+
>
105108
TTL:
106109
</Text>
107110
</FlexItem>
@@ -139,7 +142,7 @@ const KeyDetailsHeaderTTL = ({ onEditTTL }: Props) => {
139142
)}
140143
<Text
141144
size="s"
142-
className={cx(styles.subtitleText, {
145+
className={cx(styles.subtitleText, styles.subtitleTextTTL, {
143146
[styles.hidden]: ttlIsEditing || ttlIsHovering,
144147
})}
145148
data-testid="key-ttl-text"

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
padding: 6px 2px 6px 0;
33
}
44

5+
.subtitleTextTTL {
6+
height: 26px;
7+
line-height: 26px;
8+
padding: 0;
9+
}
10+
511
.controlsKey {
612
right: 25px;
713
}
@@ -21,21 +27,27 @@
2127

2228
.ttlInput {
2329
min-width: 106px;
24-
font-size: 13px !important;
25-
height: 25px !important;
30+
font-size: 12px !important;
31+
height: 24px !important;
32+
padding: 2px 0 0 9px !important;
2633
}
2734

2835
.ttlGridComponent,
2936
.classNameGridComponent {
3037
position: relative;
3138
}
3239

40+
.ttlGridComponent {
41+
height: 24px;
42+
line-height: 24px;
43+
}
44+
3345
.hidden {
3446
display: none;
3547
}
3648

3749
.ttlTextValue {
38-
padding-left: 11px;
50+
padding-left: 14px;
3951
}
4052

4153
@include global.insights-open {

0 commit comments

Comments
 (0)