- moves word-wrap into .css

- removes unused interface and enum for ellipsis
This commit is contained in:
Till Salinger 2018-02-16 16:06:16 +01:00
parent 7e2e9c9b2c
commit b7cc9709e8
2 changed files with 1 additions and 15 deletions

View file

@ -99,6 +99,7 @@
line-height: 17px;
min-height: 34px;
margin-top: -1px;
word-wrap: break-word;
}
/* Action bar support */

View file

@ -67,20 +67,6 @@ export interface IRange {
end: number;
}
export interface IShowMessageOptions {
force?: boolean;
ellipsis?: EllipsisType;
}
/**
* Determines whether the ellipsis appears at the left or right side of the string
*/
export enum EllipsisType {
NONE = 1,
LEFT = 2,
RIGHT = 3
}
const defaultOpts = {
inputBackground: Color.fromHex('#3C3C3C'),
inputForeground: Color.fromHex('#CCCCCC'),
@ -406,7 +392,6 @@ export class InputBox extends Widget {
const styles = this.stylesForType(this.message.type);
spanElement.style.backgroundColor = styles.background ? styles.background.toString() : null;
spanElement.style.border = styles.border ? `1px solid ${styles.border}` : null;
spanElement.style.wordWrap = 'break-word';
dom.append(div, spanElement);