Skip to content

Commit f4d8b78

Browse files
committed
refactor: update template box from input box to textarea
1 parent bda4e0b commit f4d8b78

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/extensionsIntegrated/CustomSnippets/htmlContent/snippets-panel.html

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

6868
<div id="template-text-box-wrapper">
6969
<label for="template-text-box">Template Text: </label>
70-
<input id="template-text-box" type="text" placeholder="console.log()" autocomplete="off" />
70+
<textarea id="template-text-box" placeholder="console.log();" autocomplete="off"></textarea>
7171
</div>
7272

7373
<div id="file-extn-box-wrapper">

src/styles/Extn-CustomSnippets.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,16 @@
108108
from { opacity: 0; }
109109
to { opacity: 1; }
110110
}
111+
112+
#template-text-box {
113+
width: 100%;
114+
min-height: 150px;
115+
max-height: 150px;
116+
resize: none;
117+
padding: 6px 8px;
118+
box-sizing: border-box;
119+
margin: 0;
120+
white-space: pre;
121+
overflow-wrap: normal;
122+
word-break: normal;
123+
}

0 commit comments

Comments
 (0)