Merge branch 'master' of github.com:zeit/hyper

This commit is contained in:
Guillermo Rauch 2017-02-17 02:43:05 -03:00
commit 75b37b7690
6 changed files with 75 additions and 3 deletions

View file

@ -67,7 +67,10 @@ export default class Tab extends Component {
)}
onClick={this.handleClick}
>
<span className={css('textInner')}>
<span
title={this.props.text}
className={css('textInner')}
>
{ this.props.text }
</span>
</span>
@ -143,7 +146,11 @@ export default class Tab extends Component {
right: 0,
top: 0,
bottom: 0,
textAlign: 'center'
textAlign: 'center',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
padding: '0 25px',
overflow: 'hidden'
},
icon: {

View file

@ -246,6 +246,11 @@ export default class Term extends Component {
background: ${this.props.borderColor};
}
`;
const selectCss = `
::selection {
background: ${Color(this.props.cursorColor).alpha(0.4).rgbString()};
}
`;
return URL.createObjectURL(new Blob([`
.cursor-node[focus="false"] {
border-width: 1px !important;
@ -255,6 +260,7 @@ export default class Term extends Component {
}
${hyperCaret}
${scrollBarCss}
${selectCss}
${css}
`], {type: 'text/css'}));
}