From b7cc9709e8140f71f2d25a591fb414825aa9da80 Mon Sep 17 00:00:00 2001 From: Till Salinger Date: Fri, 16 Feb 2018 16:06:16 +0100 Subject: [PATCH] - moves word-wrap into .css - removes unused interface and enum for ellipsis --- src/vs/base/browser/ui/inputbox/inputBox.css | 1 + src/vs/base/browser/ui/inputbox/inputBox.ts | 15 --------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/vs/base/browser/ui/inputbox/inputBox.css b/src/vs/base/browser/ui/inputbox/inputBox.css index 646ce808b44..df0073541df 100644 --- a/src/vs/base/browser/ui/inputbox/inputBox.css +++ b/src/vs/base/browser/ui/inputbox/inputBox.css @@ -99,6 +99,7 @@ line-height: 17px; min-height: 34px; margin-top: -1px; + word-wrap: break-word; } /* Action bar support */ diff --git a/src/vs/base/browser/ui/inputbox/inputBox.ts b/src/vs/base/browser/ui/inputbox/inputBox.ts index 097af0d180f..47f33833fe2 100644 --- a/src/vs/base/browser/ui/inputbox/inputBox.ts +++ b/src/vs/base/browser/ui/inputbox/inputBox.ts @@ -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);