Skip to content

Commit da87de6

Browse files
authored
fix: prevent version span from affecting icon layout (#1345)
- use absolute positioning for ipfs version display - add relative positioning to parent container - remove 20-character truncation from version text
1 parent 0d9a7ac commit da87de6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

add-on/src/popup/browser-action/header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function header (props) {
2626
isIpfsOnline: (active && isIpfsOnline)
2727
})}
2828
</div>
29-
<div class="flex flex-column ml2 white ${active ? '' : 'o-40'}">
29+
<div class="flex flex-column ml2 white ${active ? '' : 'o-40'}" style="position: relative;">
3030
<div>
3131
<h1 class="inter fw6 f2 ttu ma0 pa0">
3232
IPFS

add-on/src/popup/browser-action/ipfs-version.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ function statusEntry ({ label, labelLegend, title, value, check, valueClass = ''
1010
labelLegend = labelLegend ? browser.i18n.getMessage(labelLegend) : label
1111
value = value || value === 0 ? value : offline
1212
return html`
13-
<div title="${labelLegend}" class="ma0 pa0" style="line-height: 0.25">
14-
<span class="f7 tr monospace force-select-all ${valueClass}" title="${title}">${value.substring(0, 20)}</span>
13+
<div title="${labelLegend}" class="ma0 pa0" style="position: absolute; line-height: 0.25">
14+
<span class="f7 tr monospace force-select-all ${valueClass}" title="${title}">${value}</span>
1515
</div>
1616
`
1717
}

0 commit comments

Comments
 (0)