File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,18 +19,18 @@ export default function Instructions({
1919 < div
2020 className = "layout__instructions"
2121 >
22- < div className = "instructions" >
23- {
24- isEditing ?
25- < InstructionsEditor
26- instructions = { instructions }
27- projectKey = { projectKey }
28- onCancelEditing = { onCancelEditing }
29- onSaveChanges = { onSaveChanges }
30- /> :
31- markdownToReact ( instructions )
32- }
33- </ div >
22+ {
23+ isEditing ?
24+ < InstructionsEditor
25+ instructions = { instructions }
26+ projectKey = { projectKey }
27+ onCancelEditing = { onCancelEditing }
28+ onSaveChanges = { onSaveChanges }
29+ /> :
30+ < div className = "instructions" >
31+ { markdownToReact ( instructions ) }
32+ </ div >
33+ }
3434 </ div >
3535 ) ;
3636}
Original file line number Diff line number Diff line change @@ -39,11 +39,15 @@ export default class InstructionsEditor extends React.Component {
3939 { t ( 'workspace.components.instructions.cancel' ) }
4040 </ button >
4141 </ div >
42- < textarea
43- className = "instructions-editor__input"
44- defaultValue = { this . props . instructions }
45- ref = { this . _ref }
46- />
42+ < div className = "instructions-editor__input" >
43+ < textarea
44+ defaultValue = { this . props . instructions }
45+ ref = { this . _ref }
46+ />
47+ </ div >
48+ < div className = "instructions-editor__footer" >
49+ Styling with Markdown is supported
50+ </ div >
4751 </ div >
4852 ) ;
4953 }
Original file line number Diff line number Diff line change @@ -352,34 +352,45 @@ body {
352352/** @define instructions-editor */
353353
354354.instructions-editor {
355- height : calc (100% - var (--size-instructions-menu-padding ) - 1rem );
356- padding-top : var (--size-instructions-menu-padding );
355+ display : flex;
356+ flex-direction : column;
357+ height : 100% ;
358+ background-color : var (--color-low-contrast-gray );
357359}
358360
359361.instructions-editor__input {
360- width : 100% ;
361- height : calc (100% - 1rem );
362- margin : 0 ;
363- font-family : monospace;
364- font-size : 1rem ;
365- background-color : transparent;
366- border : 0 ;
367- outline : 0 ;
368- word-wrap : break-word;
369- white-space : pre-wrap;
370- resize : none;
362+ padding : 1rem 1rem 0 ;
363+ flex-grow : 1 ;
364+ overflow-y : scroll;
365+
366+ /* postcss-bem-linter: ignore */
367+ & textarea {
368+ height : 100% ;
369+ width : 100% ;
370+ padding : 0.5rem ;
371+ box-sizing : border-box;
372+ font-family : monospace;
373+ font-size : 1rem ;
374+ border : 0 ;
375+ outline : 0 ;
376+ word-wrap : break-word;
377+ white-space : pre-wrap;
378+ resize : none;
379+ }
371380}
372381
373382.instructions-editor__menu {
374- position : absolute;
375- top : 0 ;
376- right : 0 ;
377- left : 0 ;
378383 padding : 0.5rem ;
379384 text-align : right;
380385 background-color : var (--color-light-gray );
381386}
382387
388+ .instructions-editor__footer {
389+ margin : 1rem ;
390+ padding-top : 1rem ;
391+ border-top : 1px solid var (--color-light-gray );
392+ }
393+
383394.instructions-editor__menu-button : not (: last-child ) {
384395 margin-right : 0.5em ;
385396}
You can’t perform that action at this time.
0 commit comments