Skip to content

Commit 8fcf1b3

Browse files
committed
style(NodesTable): don't reserve space for icons next to node fqdn
1 parent d94497a commit 8fcf1b3

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

src/components/EntityStatus/EntityStatus.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
line-height: var(--yc-text-body2-line-height);
1010

1111
&__clipboard-button {
12-
display: flex;
13-
visibility: hidden;
12+
display: none;
1413
align-items: center;
1514

1615
margin-left: 8px;
@@ -22,7 +21,7 @@
2221
}
2322

2423
&_visible {
25-
visibility: visible;
24+
display: flex;
2625
}
2726
}
2827

src/containers/App/App.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ body,
144144
}
145145

146146
.data-table__row:hover .entity-status__clipboard-button {
147-
visibility: visible;
147+
display: flex;
148148
}
149149

150150
.no-problem {

src/containers/App/NodesTable.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
.kv-nodes {
2+
&__host-name-wrapper {
3+
display: flex;
4+
}
5+
26
&__external-button {
3-
display: inline-flex;
4-
visibility: hidden;
7+
display: none;
58
align-items: center;
69

710
margin-left: 4px;
@@ -14,12 +17,12 @@
1417
}
1518

1619
&__host-name {
17-
width: 90%;
20+
overflow: hidden;
1821
}
1922
}
2023

2124
.data-table__row:hover {
2225
.kv-nodes__external-button {
23-
visibility: visible;
26+
display: inline-flex;
2427
}
2528
}

src/utils/getNodesColumns.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function getNodesColumns({showTooltip, hideTooltip, tabletsPath, getNodeR
3131
return <span></span>;
3232
}
3333
return (
34-
<React.Fragment>
34+
<div className={b('host-name-wrapper')}>
3535
<EntityStatus
3636
name={row.Host}
3737
status={row.Overall}
@@ -44,7 +44,7 @@ export function getNodesColumns({showTooltip, hideTooltip, tabletsPath, getNodeR
4444
<Icon name="external" />
4545
</Button>
4646
)}
47-
</React.Fragment>
47+
</div>
4848
);
4949
},
5050
width: '350px',

0 commit comments

Comments
 (0)