Skip to content

Commit 14a1fac

Browse files
add ellipsis to dialog buttons
1 parent 4907ef2 commit 14a1fac

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

arduino-ide-extension/src/browser/library/library-list-widget.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ class MessageBoxDialog extends AbstractDialog<MessageBoxDialog.Result> {
201201
options.buttons || [nls.localize('vscode/issueMainService/ok', 'OK')]
202202
).forEach((text, index) => {
203203
const button = this.createButton(text);
204-
button.classList.add(index === 0 ? 'main' : 'secondary');
204+
button.classList.add(
205+
index === 0 ? 'main' : 'secondary',
206+
'message-box-dialog-button'
207+
);
205208
this.controlPanel.appendChild(button);
206209
this.toDisposeOnDetach.push(
207210
addEventListener(button, 'click', () => {

arduino-ide-extension/src/browser/style/index.css

+7
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ button.secondary[disabled], .theia-button.secondary[disabled] {
108108
background-color: var(--theia-secondaryButton-background);
109109
}
110110

111+
button.theia-button.message-box-dialog-button {
112+
white-space: nowrap;
113+
overflow: hidden;
114+
text-overflow: ellipsis;
115+
display: inline-block;
116+
}
117+
111118
/* To make the progress-bar slightly thicker, and use the color from the status bar */
112119
.theia-progress-bar-container {
113120
width: 100%;

0 commit comments

Comments
 (0)