Skip to content

Commit dfa0529

Browse files
committed
feature(smalltalk) cut content when it is to large
1 parent f7421cb commit dfa0529

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

css/smalltalk.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
}
5858

5959
.smalltalk .page header {
60+
overflow: hidden;
61+
text-overflow: ellipsis;
62+
white-space: nowrap;
63+
max-width: 500px;
64+
6065
-webkit-user-select: none;
6166
-moz-user-select: none;
6267
-ms-user-select: none;
@@ -70,12 +75,15 @@
7075
}
7176

7277
.smalltalk .page .content-area {
73-
overflow: auto;
78+
overflow: hidden;
79+
text-overflow: ellipsis;
80+
white-space: nowrap;
81+
7482
padding: 6px 17px 6px;
7583
position: relative;
7684
max-width: 500px;
77-
}
78-
85+
}
86+
7987
.smalltalk .page .action-area {
8088
padding: 14px 17px;
8189
}

src/smalltalk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
this.prompt = (title, msg, value, options) => {
2323
let val = value || '';
24-
let valueStr = `<input type="text" value="${ val }" data-name="js-input">`;
24+
let valueStr = `<br><input type="text" value="${ val }" data-name="js-input">`;
2525

2626
return showDialog(title, msg, valueStr, BUTTON_OK_CANCEL, options);
2727
};

0 commit comments

Comments
 (0)