@@ -164,30 +164,35 @@ const TheEditor = ({
164164 } , [ savingState ] ) ;
165165
166166 return (
167- < div className = "relative flex-grow" ref = { editorWrapperRef } >
168- < CodeEditor
169- value = { css }
170- onChange = { handleChange }
171- lineOptions = { warnings . map ( ( { loc } ) => ( {
172- line : loc . line ,
173- classes : [ 'line-error' ] ,
174- } ) ) }
175- />
167+ < div className = "relative flex min-h-0 flex-grow flex-col" >
168+ < div
169+ className = "min-h-0 flex-grow overflow-y-auto overflow-x-hidden border border-solid border-gray-600"
170+ ref = { editorWrapperRef } >
171+ < CodeEditor
172+ value = { css }
173+ onChange = { handleChange }
174+ lineOptions = { warnings . map ( ( { loc } ) => ( {
175+ line : loc . line ,
176+ classes : [ 'line-error' ] ,
177+ } ) ) }
178+ />
179+ </ div >
176180 { savingState === 'saving' && (
177- < div className = "absolute bottom-px right-1 z-10 flex items-center justify-center bg-white/50 " >
178- < span className = "text-sm text-gray-700 dark:text-gray-400 " >
181+ < div className = "absolute bottom-px right-1 z-10 flex items-center justify-center bg-white p-1 " >
182+ < span className = "text-sm text-gray-700" >
179183 { __ ( 'Saving...' , 'pattern-css' ) }
180184 </ span >
181185 </ div >
182186 ) }
183187 { savingState === 'saved' && (
184- < div className = "absolute bottom-px right-1 z-10 flex items-center justify-center bg-white/50 " >
188+ < div className = "absolute bottom-px right-1 z-10 flex items-center justify-center bg-white p-1 " >
185189 < Icon
186190 icon = { check }
191+ size = { 20 }
187192 className = "stroke-gray-700"
188193 color = "currentColor"
189194 />
190- < span className = "text-sm text-gray-700 dark:text-gray-400 " >
195+ < span className = "text-sm text-gray-700" >
191196 { __ ( 'Saved!' , 'pattern-css' ) }
192197 </ span >
193198 </ div >
0 commit comments