Skip to content

Commit

Permalink
Use a text-overflow style for the placeholder.
Browse files Browse the repository at this point in the history
Otherwise, the placeholder won't fit into the default side-panel width
and multi line `textarea` will be rendered instead.

This CSS style adjusts the `textarea` behavior to VS Code.

Signed-off-by: Akos Kitta <[email protected]>
  • Loading branch information
Akos Kitta authored and akosyakov committed Jun 13, 2019
1 parent 69c9d51 commit db8c807
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/scm/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@
padding: 4px 4px 4px 4px;
}

.theia-scm-input-message-container textarea:placeholder-shown {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.theia-scm-input-message-container textarea:not(:focus) {
border-style: solid;
border-width: 1px;
Expand Down

0 comments on commit db8c807

Please sign in to comment.