File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ export default class InstructionsEditor extends React.Component {
3939 { t ( 'workspace.components.instructions.cancel' ) }
4040 </ button >
4141 </ div >
42- < div className = "instructions-editor__input" >
42+ < div className = "instructions-editor__input-container " >
4343 < textarea
44+ className = "instructions-editor__input"
4445 defaultValue = { this . props . instructions }
4546 ref = { this . _ref }
4647 />
Original file line number Diff line number Diff line change @@ -361,25 +361,27 @@ body {
361361 background-color : var (--color-low-contrast-gray );
362362}
363363
364- .instructions-editor__input {
365- padding : 1rem 1rem 0 ;
364+ .instructions-editor__input-container {
365+ position : relative;
366+ width : 100% ;
366367 flex-grow : 1 ;
367368 overflow-y : scroll;
369+ }
368370
369- /* postcss-bem-linter: ignore */
370- & textarea {
371- height : 100 % ;
372- width : 100 % ;
373- padding : 0.5 rem ;
374- box-sizing : border-box ;
375- font-family : monospace ;
376- font-size : 1 rem ;
377- border : 0 ;
378- outline : 0 ;
379- word-wrap : break-word ;
380- white-space : pre-wrap ;
381- resize : none ;
382- }
371+ . instructions-editor__input {
372+ position : absolute;
373+ top : 0 ;
374+ bottom : 0 ;
375+ width : 100 % ;
376+ height : 100 % ;
377+ padding : 0.5 rem ;
378+ box-sizing : border-box ;
379+ font-size : 1 rem ;
380+ border : 0 ;
381+ outline : 0 ;
382+ word-wrap : break-word ;
383+ white-space : pre-wrap ;
384+ resize : none;
383385}
384386
385387.instructions-editor__menu {
@@ -389,9 +391,8 @@ body {
389391}
390392
391393.instructions-editor__footer {
392- margin : 1rem ;
393- padding-top : 1rem ;
394- border-top : 1px solid var (--color-light-gray );
394+ margin : 0.5rem ;
395+ font-size : 0.875rem ;
395396}
396397
397398.instructions-editor__menu-button : not (: last-child ) {
You can’t perform that action at this time.
0 commit comments