Skip to content

Commit

Permalink
Crop label on Touch Bar button (#706)
Browse files Browse the repository at this point in the history
Fixes #705
  • Loading branch information
janosorcsik authored and sindresorhus committed Jan 14, 2019
1 parent 32b6bce commit 153557b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion touch-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ipc.on('conversations', (event, conversations) => {
const touchBar = new TouchBar(
conversations.map(({label, selected, icon}, index) => {
return new TouchBarButton({
label,
label: label.length > 25 ? label.slice(0, 25) + '…' : label,
backgroundColor: selected ? '#0084ff' : undefined,
icon: nativeImage.createFromDataURL(icon),
iconPosition: 'left',
Expand Down

0 comments on commit 153557b

Please sign in to comment.