Skip to content

Commit d131c85

Browse files
committed
Merge branch 'frontend-sidebar-connectedicon'
2 parents 8939a51 + 4a725e6 commit d131c85

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

frontends/web/src/components/badge/badge.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
.badgeIcon {
21-
max-width: 9px;
21+
max-width: 10px;
2222
}
2323

2424
.withChildren .badgeIcon {

frontends/web/src/components/sidebar/sidebar.module.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@
9292
color: var(--color-secondary);
9393
}
9494

95+
.sidebarIconVisible {
96+
visibility: visible;
97+
}
98+
99+
.sidebarIconHidden {
100+
visibility: hidden;
101+
}
102+
95103
.sidebarItem {
96104
display: block;
97105
}

frontends/web/src/components/sidebar/sidebar.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,11 @@ class Sidebar extends Component<Props> {
226226
<> ({keystore.keystore.rootFingerprint})</>
227227
) : null }
228228
</span>
229-
{keystore.keystore.connected ? (
230-
<Badge
231-
icon={props => <USBSuccess {...props} />}
232-
type="success"
233-
title={t('device.keystoreConnected')} />
234-
) : null}
229+
<Badge
230+
className={keystore.keystore.connected ? style.sidebarIconVisible : style.sidebarIconHidden}
231+
icon={props => <USBSuccess {...props} />}
232+
type="success"
233+
title={t('device.keystoreConnected')} />
235234
</span>
236235
</div>
237236

0 commit comments

Comments
 (0)