Skip to content

Commit e4fbcd1

Browse files
Code2Collapseclaude
andcommitted
feat(WanDirector): resizable prompt boxes (port of feat f19b16d)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent d156a1f commit e4fbcd1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

js/wan_director_timeline.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,16 @@ function _ensureWdStyles() {
298298
box-sizing:border-box;position:relative;}
299299
.wd-props{display:flex;flex-direction:column;gap:7px;flex:1 1 auto;min-height:0;overflow-y:auto;padding:2px;}
300300
.wd-prompt-wrap{position:relative;width:100%;background:var(--wd-panel);border:1px solid var(--wd-line);
301-
border-radius:6px;box-sizing:border-box;overflow:hidden;transition:border-color .2s ease;min-height:74px;}
301+
border-radius:6px;box-sizing:border-box;overflow:visible;transition:border-color .2s ease;
302+
min-height:74px;flex:0 0 auto;} /* flex:0 0 auto so the textarea's resized height is held */
302303
.wd-prompt-wrap:focus-within{border-color:#4d6a86;}
303304
.wd-plabel{position:absolute;top:6px;left:9px;font-size:9px;font-weight:700;color:var(--wd-dim2);
304305
text-transform:uppercase;letter-spacing:.6px;pointer-events:none;user-select:none;z-index:2;}
305306
.wd-pmeta{position:absolute;top:6px;right:9px;font:9px ui-monospace,monospace;color:var(--wd-dim2);
306307
pointer-events:none;z-index:2;}
307-
.wd-parea{width:100%;box-sizing:border-box;background:transparent;color:var(--wd-fg);border:none;
308-
padding:22px 9px 9px;resize:none;font-size:12px;line-height:1.45;outline:none;min-height:74px;}
308+
.wd-parea{display:block;width:100%;box-sizing:border-box;background:transparent;color:var(--wd-fg);
309+
border:none;padding:22px 9px 9px;resize:vertical;font-size:12px;line-height:1.45;outline:none;
310+
min-height:74px;} /* drag the textarea's bottom-right grip to grow the prompt box */
309311
.wd-parea::placeholder{color:#555;}
310312
.wd-info{background:#191919;color:#bcbcbc;border:1px solid var(--wd-line);border-radius:6px;
311313
padding:10px 11px;font-size:11.5px;line-height:1.6;}

0 commit comments

Comments
 (0)